Skip to content

A minicompiler to compile the switch statement in JavaScript

Notifications You must be signed in to change notification settings

vamsikoneti/JSCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSCompiler

A minicompiler to compile the switch statement in JavaScript

Installations

Use the Advanced Package Tool to install Flex and YACC

sudo apt-get update

sudo apt-get install flex

sudo apt-get install bison

Compile and Run Program

flex -l flexfile.l

bison -ldv bison.y

gcc bison.tab.c lex.yy.c -lfl

Execution

Copy paste the switch statement on the terminal for syntax and semantic analysis. Errors are displayed accordingly. If no errors present, consider code snippet to have perfect switch statement syntax

License

MIT

About

A minicompiler to compile the switch statement in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published