Previous    Next

PROGRAM LEXICAL ANALYSIS

Write the lexical-analysis part of a JavaCC or SableCC specification for MiniJava. Appendix A describes the syntax of MiniJava. The directory

$MINIJAVA/chap2/javacc


contains a test-scaffolding file Main.java that calls the lexer generated by javacc. It also contains a README file that explains how to invoke javacc. Similar files for sablecc can be found in $MINIJAVA/chap2/sablecc.


JaVaScreenshot Previous    Next
Comments