Skip to content

coshcage/yaclrcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

Yet another CLR compiler compiler.
This project needs StoneValley and svregex.
https://github.com/coshcage/StoneValley
https://github.com/coshcage/svregex

Synopsis:
L2 file:
c
d

Each line is a valid regular expression represented by line number.
Lex program returns line number when it matches a string.

Y2 file:
A : S;
S : C C;
C : 1 C;
C : 2;

In Y2 file, terminal is represented as decimal numbers which returned by lex program.
And non-terminal is a upper case letter string with under score.
The parser parses Y2 file to output a BNF list which is the augmented CLR grammar.
The first line of Y2 file is the starting point of grammar.

Special thanks must go to txyximo at 163 dot com.

Releases

No releases published

Packages

No packages published

Languages