Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write the java interpreter/lexical analyzer

How to write For 1 data type, integer, and the only identifiers are single letter (i.e. there are only 26 possible identifiers).

not case sensitive have white space (blank characters, tab characters, and end of line characters) between every lexeme.see this

like image 942
Vidya Avatar asked May 23 '26 16:05

Vidya


1 Answers

There's a great NLP engine called OpenNLP written in Java.

Take a look over there code, you'll learn a lot.

like image 50
A T Avatar answered May 26 '26 04:05

A T