Package com.scriptbasic.lexer
Class BasicLexialElementFactory
java.lang.Object
com.scriptbasic.lexer.BasicLexialElementFactory
Factory to create a new BasicLexicalElement initializing some fields from the
reader.
- Author:
- Peter Verhas
-
Method Summary
Modifier and TypeMethodDescriptionstatic BasicLexicalElementcreate(SourceReader reader) Create a new BasicLexicalElement and fill in the FileName, LineNumber and the Position from the current position of the reader.static BasicLexicalElementcreate(SourceReader reader, int type)
-
Method Details
-
create
Create a new BasicLexicalElement and fill in the FileName, LineNumber and the Position from the current position of the reader.- Parameters:
reader- from where we are going to read the lexical element- Returns:
- a new and initialized lexical element object
-
create
-