readme

来自「java语法解释器生成器」· 代码 · 共 31 行

TXT
31
字号
A small JFlex+Cup exampleIt comes from a short article series in the Linux Gazette by RichardA. Sevenich and Christopher Lopes, titled "Compiler ConstructionTools". The article series starts athttp://www.linuxgazette.com/issue39/sevenich.htmlSmall changes and updates to newest JFlex+Cup versions by Gerwin KleinTo compile:>jflex lcalc.flex>java java_cup.Main < ycalc.cup>javac Main.javaTo run:>java Main test.txtFiles:Main.java       demo of a main programMakefile        makefile to compile and test the exampleREADME          this filelcalc.flex      the lexer specoutput.good     how the output should look like for the testycalc.cup       the parser spectest.txt        sample input for testing

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?