Skip to content

online6731/antlr-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antlr parser in Angular

This is simple web based parser generated by antlr and antlr4ts in angular.

An example of the grammar:

<chess_game>
    <player>
        <name> ali </name>
        <code> 2 </code>
        <color> black </color>
    </player>
    <player>
        <name> alim </name>
        <code> 1 </code>
        <color> black </color>
    </player>
    <result>
        <winner> 1 </winner>
        <time> 200000 </time>
        <moves> 10 </moves>
    </result>
</chess_game>

Also a parser for grammar in python and some more information can be found in the notebook:

https://github.com/online6731/compiler-design