Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement a language using a functional language? [closed]

I prefer Haskell.

I already know How to create my own language with Procedural Language (for example: C, Java, Python, etc).

But, I know How to create my own language with Functional Language (for example Haskell, Clojure and Scala).

I've already read:

Internet Resources

  1. Write Yourself a Scheme in 48 Hours
  2. Real World Haskell - Chapter 16.Using Persec
  3. Writing A Lisp Interpreter In Haskell
  4. Parsec, a fast combinator parser
  5. Implementing functional languages: a tutorial

Books

  1. Introduction Functional Programming Using Haskell 2nd Edition -- Haskell

StackOverflow (but with procedural language)

  1. Learning to write a compiler
  2. create my own programming language

Source

  1. Libraries and tools/HJS -- Haskell

Are there any other good links/sources? I would like to get some more.

like image 505
esehara Avatar asked Nov 16 '11 17:11

esehara


People also ask

How is the functions implemented in a programming language?

The program comes to a line of code containing a "function call". The program enters the function (starts at the first line in the function code). All instructions inside of the function are executed from top to bottom. The program leaves the function and goes back to where it started from.

What is a closure in functional programming?

A closure is a programming technique that allows variables outside of the scope of a function to be accessed. Usually, a closure is created when a function is defined in another function, allowing the inner function to access variables in the outer one.

Is closure a functional programming language?

Companies Succeeding with Clojure “Clojure is a functional programming language from top to bottom. This means that code written in Clojure is very modular, composable, reusable and easy to reason about.”

What are the two main language implementation methods?

Two Main Implementation MethodsCompiler finished before program executed.


1 Answers

Programming Languages: Application and Interpretation is frequently used in programming language classes, and is available online for free. It uses Scheme.

Types and Programming Languages is another incredible book dealing with type systems (including implementation), though only available in dead tree format. It uses ML (which represents a significant family of functional languages that I noticed was missing from your list).

Racket (formerly called PLT Scheme) is a functional language that emphasizes making your own sub-language.

like image 106
Dan Burton Avatar answered Sep 29 '22 08:09

Dan Burton