CSX-Code-Generator

所属分类:自动编程
开发工具:Java
文件大小:1585KB
下载次数:0
上传日期:2016-07-21 22:33:29
上 传 者sh-1993
说明:  遍历CSX程序的抽象语法树,并生成要使用Jasmin组装的JVM汇编程序代码。
(Traverses the abstract syntax tree for a CSX program and generates JVM assembler code, to be assembled using Jasmin.)

文件列表:
.classpath (226, 2016-07-22)
.externalToolBuilders (0, 2016-07-22)
.externalToolBuilders\New_Builder (1).launch (1186, 2016-07-22)
.externalToolBuilders\Proj2 Builder.launch (986, 2016-07-22)
.project (657, 2016-07-22)
JLex (0, 2016-07-22)
JLex\CAccept.class (641, 2016-07-22)
JLex\CAcceptAnchor.class (677, 2016-07-22)
JLex\CAlloc.class (1096, 2016-07-22)
JLex\CBunch.class (843, 2016-07-22)
JLex\CDTrans.class (833, 2016-07-22)
JLex\CDfa.class (920, 2016-07-22)
JLex\CEmit.class (17870, 2016-07-22)
JLex\CError.class (3021, 2016-07-22)
JLex\CInput.class (1742, 2016-07-22)
JLex\CLexGen.class (24778, 2016-07-22)
JLex\CMakeNfa.class (5413, 2016-07-22)
JLex\CMinimize.class (5984, 2016-07-22)
JLex\CNfa.class (1033, 2016-07-22)
JLex\CNfa2Dfa.class (5462, 2016-07-22)
JLex\CNfaPair.class (666, 2016-07-22)
JLex\CSet.class (719, 2016-07-22)
JLex\CSpec.class (2781, 2016-07-22)
JLex\CUtility.class (3197, 2016-07-22)
JLex\JavaLexBitSet.class (2501, 2016-07-22)
JLex\Main.class (1055, 2016-07-22)
ant test (0, 2016-07-22)
ant test\.build.xml.swp (16384, 2016-07-22)
ant test\CSX.class (783, 2016-07-22)
ant test\CSX.java (590, 2016-07-22)
ant test\build copy.xml (3499, 2016-07-22)
ant test\build.properties (37, 2016-07-22)
ant test\build.xml (3648, 2016-07-22)
bin (0, 2016-07-22)
bin\ASTNode$Kinds.class (1394, 2016-07-22)
bin\ASTNode$Types.class (1165, 2016-07-22)
bin\ASTNode.class (616, 2016-07-22)
bin\ArgsProcessor.class (1299, 2016-07-22)
... ...

************************************************************* * JLex README Version 1.2 * ************************************************************* Written by Elliot Berk [edited by A. Appel]. Contact appel@princeton.edu with any problems relating to JLex. The following steps describe the compilation and usage of JLex. (1) Choose some directory that is on your CLASSPATH, where you install Java utilities such as JLex. I will refer to this directory as "J", for example. (2) Make a directory "J/JLex" and put the sourcefile Main.java in J/JLex. (3) Compile Main.java as you would any Java source file: javac Main.java This should produce a number of Java class files, including Main.class. (4) To run JLex with a JLex specification file, the usage is: java JLex.Main where is the name of the JLex specification file. JLex will produce diagnostic output to inform you of its progress and, upon completion, will produce a Java source file that contains the lexical analyzer. The name of the lexical analyzer file will be the name of the JLex specification file, with the string ".java" added to the end. (So if the JLex specification file is called foo.lex, the lexical analyzer source file that JLex produces will be called foo.lex.java.) (5) The resulting lexical analyzer source file should be compiled with the Java compiler: javac where is the name of the lexical analyzer source file. This produces a lexical analyzer class file, which can then be used in your applications. If the default settings have not been changed, the lexical analyzer class will be called Yylex and the classs files will named Yylex.class and Yytoken.class.

近期下载者

相关文件


收藏者