public final class PandaLexerConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabledSections |
protected boolean |
ignoringCase |
protected boolean |
ignoringWhitespaces |
protected boolean |
includingIndentation |
protected Syntax |
syntax |
| Modifier | Constructor and Description |
|---|---|
protected |
PandaLexerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
PandaLexer |
build()
Build lexer based on provided options
|
PandaLexerConfiguration |
enableIgnoringCaseOfTokens()
Enable ignoring case of tokens, e.g.
|
PandaLexerConfiguration |
enableSections()
Enable wrapping content between separator pairs into section tokens
|
PandaLexerConfiguration |
ignoreWhitespaces()
Enable ignoring whitespaces
|
PandaLexerConfiguration |
includeIndentation()
Enable including indentation into the
Indentation token |
PandaLexerConfiguration |
withSyntax(Syntax syntax)
Syntax scheme used by lexer
|
protected Syntax syntax
protected boolean ignoringCase
protected boolean enabledSections
protected boolean ignoringWhitespaces
protected boolean includingIndentation
public PandaLexerConfiguration withSyntax(Syntax syntax)
syntax - the syntax to usepublic PandaLexerConfiguration enableSections()
public PandaLexerConfiguration enableIgnoringCaseOfTokens()
public PandaLexerConfiguration includeIndentation()
Indentation tokenpublic PandaLexerConfiguration ignoreWhitespaces()
public PandaLexer build()
Copyright © 2020. All rights reserved.