【文件属性】:
文件名称:PascalCompiler:Pascal编译器
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-17 14:09:48
Java
Pascal编译器
用Java编写
用过的书菲舍尔·赛创(Fischer Cytron)和勒布朗(LeBlanc)制作编译器
怎么跑
javac Compiler.java
java Compiler `source code`
背景
编译器
- main program used to compile your Pascal source code
Lexer.java
- aka lexical analyzer, scanner, tokenzierr
- reads source code 1 char at a time and groups them into tokens
- tokens are identifiers, integers, keywords, and delimeters
- eliminates unneeded info (like c
【文件预览】:
PascalCompiler-master
----Compiler.java(2KB)
----keywords.txt(455B)
----tests()
--------whiles.pas(155B)
--------sum.pas(227B)
--------hello.pas(61B)
--------ifelse.pas(194B)
--------assign.pas(78B)
----SymbolTable.java(437B)
----Parser.java(11KB)
----Lexer.java(12KB)
----Token.java(683B)
----README.md(2KB)