Class BasicLexialElementFactory


  • public final class BasicLexialElementFactory
    extends java.lang.Object
    Factory to create a new BasicLexicalElement initializing some fields from the reader.
    Author:
    Peter Verhas
    • Method Detail

      • create

        public static BasicLexicalElement create​(SourceReader reader)
        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