ZincParser

//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////

Constructors

this
this(Range r)
Undocumented in source.
this
this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

Lexer
alias Lexer = ZincLexer!Range
Undocumented in source.
Parser
alias Parser = ZincParser!Range
Undocumented in source.

Enums

ParserState
enum ParserState

Definitions of parser states

Functions

asGrid
immutable(Grid) asGrid()

Parses the InputRange and constructs an in-memory Grid

asRows
auto asRows()

Parses the zinc InputRange as an InputRange of Dicts This allows lazy row based parsing.

asTag
Tag asTag()
Undocumented in source. Be warned that the author may not have intended to support it.
chr
dchar chr()
Undocumented in source. Be warned that the author may not have intended to support it.
expectToken
bool expectToken()
Undocumented in source. Be warned that the author may not have intended to support it.
expectToken
bool expectToken(TokenType type)
Undocumented in source. Be warned that the author may not have intended to support it.
expectToken
bool expectToken(TokenType type, Tag value)
Undocumented in source. Be warned that the author may not have intended to support it.
hasChr
bool hasChr(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
isScalar
bool isScalar()
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
void popFront()

Parse next Element

Properties

empty
bool empty [@property getter]

True until parsing error or parsing complete

front
Element front [@property getter]

The last parsed Element

isNewLine
bool isNewLine [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isSpace
bool isSpace [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
range
Range range [@property getter]

The InputRange the parser uses

range
Range range [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
token
const(Token) token [@property getter]

//////////////////////////////////////////////// //////////////////////////////////////////////// ////////////////////////////////// //////////////////////////////////

Structs

AnyTag
struct AnyTag

/////////////////////////////////////// Tag parsing components /////////////////////////////////////// Parsing for any type of Tags

Columns
struct Columns

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// Parser the column portion of a Grid

Element
struct Element
Undocumented in source.
Header
struct Header

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// Parser the header portion of a Grid

NameValue
struct NameValue

/////////////////////////////////////// Decode a pair of tags ///////////////////////////////////////

NameValueList
struct NameValueList

/////////////////////////////////////// Components /////////////////////////////////////// Decode a list of pair of tags

Rows
struct Rows

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// Parser the rows portion of a Grid

TagDict
struct TagDict

Dictionary of tags

TagGrid
struct TagGrid

Grid of tags

TagList
struct TagList

A list of AnyTags

Variables

element
Element element;
Undocumented in source.
lexer
Lexer lexer;

//////////////////////////////////////////////// ///////////////////////////////////////////////

state
ParserState state;

Current parser state

Meta