Skip to content

PorUnaCabeza/Calc-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calc Interpreter

A Simple Interpreter

grammars

expr: term((PLUS|MINUS) term)*
term: factor((MUL|DIVISION) factor)*
factor: (PLUS|MINUS)factor | INTEGER | LPAREN expr RPAREN

Parser.js
Lexer.js

run

// calc interpreter
node calc-expression.js

// convert js expression to lisp
node transfer-expression-to-lisp.js

About

词法分析、Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published