This project is part of the Language Translator Subject. Have created compiler for parsing and evaluating the String, Char and Int based operation.
Make a compiler for language described as follows:-
Following is a valid sentence in a string, char and int operation based compiler. Generate its appropriate
language description and compiler
Valid sentences in language :
START -> EXPR SEMICOLON NEWLINE
EXPR -> 'string' VARNAME STR
| 'char' VARNAME CHAR
| 'int' VARNAME INT
STR -> ASSGN STR1
| ε
STR1 -> VARNAME SOP VARNAME
| "VALUESTR" STR2
STR2 -> SOP "VALUESTR"
| ε
CHAR -> ASSGN CHAR1
CHAR1 -> 'VALUECHAR'
INT -> ASSGN INT1
INT1 -> VARNAME IOP VARNAME
ASSGN -> '='
SOP -> '+'
| '-'
| '<->'
IOP -> '?'
HTML, Js, Ajax, bootstrap, jquery, NodeJS, Express
npm install
npm start