Class ScriptLexer


public class ScriptLexer extends PreprocessorLexer
The lexer for a script reader context.
Author:
Matthew Tropiano
  • Constructor Details

    • ScriptLexer

      public ScriptLexer(ScriptKernel kernel, Reader in, ScriptReaderIncluder includer, ScriptReaderOptions options)
      Creates a new lexer around a String, that will be wrapped into a StringReader class chain. This will also assign this lexer a default name.
      Parameters:
      kernel - the lexer kernel to use for defining how to parse the input text.
      in - the input stream to read from.
      includer - the script reader includer to use.
      options - the script reader options to use.
    • ScriptLexer

      public ScriptLexer(ScriptKernel kernel, String name, Reader in, ScriptReaderIncluder includer, ScriptReaderOptions options)
      Creates a new script lexer around a String, that will be wrapped into a StringReader class chain.
      Parameters:
      kernel - the lexer kernel to use for defining how to parse the input text.
      name - the name of this lexer.
      in - the input stream to read from.
      includer - the script reader includer to use.
      options - the script reader options to use.