Skip to content

Demo project to illustrate how antlr predicate rules can be used

Notifications You must be signed in to change notification settings

darnocian/ProtoPas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what is this

A sample project illustrating the use of antlr predicates.

Project is built in java using Intellij and uses gradle.

This is pretty minimalistic in order to illustrate the particular feature.

see:

File Note
Grammar/ProtoPas.g4 antlr source
Grammar/gen.bat to generate the source files
src/main/java/Delphi.java supportsInlineVar is used to control inline var support
src/main/java/ProtoWalker.java creates very simplistic and probably buggy ast output
src/main/java/ThrowingErrorListner.java raise exceptions on parser error
src/main/java/Main.java simple main
src/test/java/ProtoPasTests.java some basic units tests

About

Demo project to illustrate how antlr predicate rules can be used

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages