https://github.com/lurst/write_yourself_a_scheme
https://github.com/lurst/write_yourself_a_scheme
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lurst/write_yourself_a_scheme
- Owner: LuRsT
- Created: 2016-08-19T08:42:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-19T14:15:46.000Z (over 9 years ago)
- Last Synced: 2025-01-19T17:31:10.280Z (12 months ago)
- Language: Haskell
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Write Yourself a Scheme in 48 Hours/Parsing
https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours/Parsing
### Interesting quotes
> Monad is a concept. To say a value is of a type of the monad class is to say :
> - There is (a certain type of) extra information attached to this value;
> - Most functions do not need to worry about these informations.
> Haskell is a functional language: instead of giving the computer a sequence of instructions to carry out, you give it a collection of definitions that tell it how to perform every function it might need. These definitions use various compositions of actions and functions. The compiler figures out an execution path that puts everything together.
> Bind (>>) means "Attempt to match the first parser, then attempt to match the second with the remaining input, and fail if either fails."
### Chapter 1
ghc -o greet greet.hs
./greet
### Chapter 2
ghc --make -o simple_parser scheme.hs
./simple_parser $
./simple_parser a