public final class Indentation extends Object
Modifier and Type | Field and Description |
---|---|
static Parser<Void> |
WHITESPACES
A
Parser that recognizes 1 or more whitespace characters on the same line. |
Constructor and Description |
---|
Indentation()
Creates a
Indentation object that generates default indent and outdent tokens. |
Indentation(Object indent,
Object outdent)
Creates an
Indentation object that uses indent and outdent as the
token values for indentation and outdentation. |
Modifier and Type | Method and Description |
---|---|
Parser<Token> |
indent()
A
Parser that recognizes the generated indent token. |
Parser<List<Token>> |
lexer(Parser<?> tokenizer,
Parser<?> delim)
A
Parser that greedily runs tokenizer , and translates line feed characters
('\n' ) to indent and outdent tokens. |
Parser<Token> |
outdent()
A
Parser that recognizes the generated outdent token. |
public Indentation(Object indent, Object outdent)
Indentation
object that uses indent
and outdent
as the
token values for indentation and outdentation.public Indentation()
Indentation
object that generates default indent and outdent tokens.Copyright © 2013–2018 jparsec. All rights reserved.