Skip to content

BobHuangC/CS2612-FlexWhileD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flex specified for WhileDeref

Using Flex, this project designs a lexical rule containing a regular expression and WhileDeref program, performs lexical analysis, syntax analysis and syntax tree output for the lexical rule, and generates NFA and DFA from the regular expression.

The preprocessors are placed in the folder PreProcess; The programs for lexical analysis and syntax analysis of the lexical rule are in the folder LangAnalysis; The programs for generating NFA and DFA are in the folder NFADFA.

In addition, the folder examples contains 6 test examples. The first one examples/input_file.l is the most representative one, which includes many extreme cases you might want to test.

Installation

Clone the repo

git clone https://github.com/BobHuangC/PL_project.git

(back to top)

Test

GeneralAnalyzer usage:

make
./bin/flexWhileD examples/input_file.l

Then the output will be in the file "examples/input_file.l-result.txt".

(back to top)

The requirements for the input file are listed in the doc/InputRequirements.md file.

Contact

Please feel free to open an issue or contact us personally if you have questions, need help, or need explanations. Write to one of the following email addresses, and maybe put one other in the cc:

[email protected]

[email protected]

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published