Skip to content

jmarchesini/antlr4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

antlr4

Selected exercises from Terrence Parr's The Definitive Antlr 4 Reference and Language Implementation Patterns

  • hello: the very basics

  • ch4: antlr4 book examples covering XML, Java interfaces, simple expressions and a calculator

  • ch8: antlr4 book examples covering json-to-xml, a call graph viewer and basic symbol tables

  • lip-ch10: A bytecode assembler, disassembler, a stack-based bytecode interpreter and a register-based bytecode interpreter. These are the three patterns from Language Interpretation Patterns refactored to work with antlr4, and to clean up and remove the duplication in the sample code. (Each pattern in Parr's sample code is complete on its own and thus duplicates a number of classes.)

About

Sample code for antlr4

Resources

Stars

Watchers

Forks

Contributors

Languages