APPENDIX
SOURCE CODE
1. Lexical Analysis
2. Parser
3. Abstract Syntax Tree
4. Symbol Table
5. AST Visitor
6. Context Checker
7. ByteCode Generator
8. Token Java
9. Tokenconstatnts
10. ParserUtil
LIST OF TABLES & FIGURES
LIST OF TABLES
1. Grammar of JComp
2. Valid Tokens of JComp
LIST OF FIGURES
1. Function of a Compiler
2. Comparison of C and Java Compiler
3. Compilation Process
4. Phases of Compilers
5. Interaction of Lexical
Analyzer with Parser
6. Position of Parser
in Compiler Model
7. LeBlanc Cook Symbol Table
8. Position of Context
Checker in Compiler Model
9. Sample Program
1 - Compilation
10. Sample Program
1 - Output
11. Sample Program
2 - Compilation
12. Sample Program
3 - Compilation