-
Notifications
You must be signed in to change notification settings - Fork 0
gllghr/HappyAlexExample
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A very simple example of using the Haskell parser and lexer generators Happy and Alex. This uses the Alex monad along with Happy to get a continuation-based parser and lexer. It took me quite a while to figure out how to get it right, maybe this will help save someone else a little time. To compile: alex Lexer.x happy Parser.y and then load Parser.hs in GHCi, and *Parser> parse "[asdf dd [a [ddd vvv aaa] asdf]]" Right (Brack (S "asdf") (S "dd") (Brack (S "a") (Brack (S "ddd") (S "vvv") (S "aaa")) (S "asdf")))
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published