Skip to content

Latest commit

 

History

History

golang

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Golang Grammar

An ANTLR4 grammar for Golang based on The Go Programming Language Specification.

How to use

  • Generate lexer and parser with ANTLR4 generator
  • Include both generated and base classes to project from corresponding directory (C#, Java, or Go). For Go runtime you should add prefix p. to all semantic predicates, i.e: lineTerminatorAhead -> p.lineTerminatorAhead() and so on.

Main contributors

  • Sasa Coh, Michał Błotniak, 2017
    • Initial version
  • Ivan Kochurkin and @fred1268, [email protected], Positive Technologies, 2019:
    • Separated lexer and parser
    • Fixes and refactoring
  • Dmitry Rassadin, [email protected], Positive Technologies, 2019:
    • Samples set
    • Fixes and refactoring

License

BSD-3