Skip to content
/ cool Public

EBNF grammar, lexer and parser for the Cool programming language

License

Notifications You must be signed in to change notification settings

nazavode/cool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cool

EBNF grammar, lexer and parser for the Cool programming language.

Grammar

The full language grammar is described in cool.tm using the EBNF-like format specified by TextMapper.

How to generate lexer and parser

Firstly we need to make sure the TextMapper tool is available:

$ go get github.com/inspirer/textmapper/tm-go/cmd/textmapper

Then, we can regenerate all the go code for both the lexer and parser:

$ git clone https://github.com/nazavode/cool.git
$ cd cool
$ make

About

EBNF grammar, lexer and parser for the Cool programming language

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published