Skip to content

seareale/BNF_rule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

BNF_rule

The homework of 'Programming Languages' class

'Use'

  1. install 'java'
  2. make a 'g4' file (Parser Rule, Lexer Rule)
  3. make a 'input.txt' (source file)
  4. run 'antlr.bat'

'Antlr'

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.

'Result of example'

  • /data/Example1 example1

  • /data/Example2 example2

  • /data/Example3 example3

About

The homework of 'Programming Languages' class

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published