Skip to content

A tool, developed with Flex/Bison, is intended for parsing C language program and output the ASTof it.

Notifications You must be signed in to change notification settings

kais0ng/SyntaxAnalyser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SyntaxAnalyser

A tool, developed with Flex/Bison, is intended for parsing C language program and output the ASTof it.

How to use the three files to generate a C language syntax analyser, let us get you started with it.

  1. In command line prompt, type "flex lex.l" and then press Enter key, so you will see a new generated file with the name of lex.yy.c;

  2. type "bison -d parser.y" and then press Enter key, so you will also find a new generated file whose name is parser.tab.c;

  3. type "gcc -o ASTGenerator lex.yy.c parser.tab.c" and then ASTGenerator will be generated by default.

About

A tool, developed with Flex/Bison, is intended for parsing C language program and output the ASTof it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages