Skip to content
/ ANTLP Public

Yet ANother Tool for Lexer & Parser generator

Notifications You must be signed in to change notification settings

AditiRM/ANTLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANTLP : ANother Tool for Lexer & Parser generator!

Context-free grammar, lexer and recursive descent parser for a C-like language in Go.

Motivation

To implement lexical and syntax analyzers. Also wanted to choose a modern language that I had not tried before.

Usage

  • Run $ go run . [file] where [file] represents an optional argument (which defaults to test.txt) to parse the file.
  • If the parser accepts the program, it will generate a DOT specification of the parse tree depicting the leftmost derivation in out.dot.

Lexer Testing

  • Input files for lexer's test suite can be found in src/tests/.
  • To run the tests : go test

References

About

Yet ANother Tool for Lexer & Parser generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages