Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

Write a lexical analyzer (Tokenizer) in Java

VIEWS: 184 PAGES: 1

  • pg 1
									Compiler Design: Winter 2002-2003

Project 1: Java Lexical Analyzer
Due Date: January 10, 2003 at the end of the class period. (2 person project)

Write a lexical analyzer (Tokenizer) in Java.(Can not use Jlex). Your tokenizer must realize tokens defined in the dragon book appendix A. Deliverables: A zip or jar file that contains 1) directory structure named “lex” 2) under lex directory,  Ant build.xml  Java source and class file  Test results (test data will be provided, please check our web site)

Example of the test runs C:\dev\JLex\simple>java Simple 2 + 4 Token Token Token Token - 234 ; #42: 2 (line 0) #1: + (line 0) #42: 234 (line 0) #0: ; (line 0)


								
To top