Prism
所属分类:编程语言基础
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2020-08-29 05:44:49
上 传 者:
sh-1993
说明: 新的编程语言
(New programming language)
文件列表:
Grammar.g4 (5279, 2020-08-22)
main.js (34741, 2020-08-22)
package-lock.json (13066, 2020-08-22)
package.json (351, 2020-08-22)
parser/ (0, 2020-08-22)
parser/Grammar.interp (13217, 2020-08-22)
parser/Grammar.tokens (971, 2020-08-22)
parser/GrammarLexer.d.ts (352, 2020-08-22)
parser/GrammarLexer.interp (11853, 2020-08-22)
parser/GrammarLexer.js (21732, 2020-08-22)
parser/GrammarLexer.tokens (971, 2020-08-22)
parser/GrammarListener.d.ts (2919, 2020-08-22)
parser/GrammarListener.js (17640, 2020-08-22)
parser/GrammarParser.d.ts (8273, 2020-08-22)
parser/GrammarParser.js (167253, 2020-08-22)
parser/GrammarVisitor.js (11433, 2020-08-22)
setup.prsm (225, 2020-08-22)
# Prism
New programming language
Using Nodejs for getting files and processing them, ANTLR4 for lexing and parsing
So far it can:
- turn a file into an AST with antlr4
- clean up AST to better suit needs of interpreter/compiler
- interpret (WIP)
TO RUN:
- nodejs
- npm modules needed: antlr4, fs
- edit main.js to run your code (change input variable at the bottom)
or
create a file named code.prsm in the folder with your code
- run the node project (run in terminal: node main.js)
近期下载者:
相关文件:
收藏者: