gfx.decl.sdlang.parser

Undocumented in source.

Members

Aliases

ParserEvent
alias ParserEvent = TaggedAlgebraic!ParserEventUnion

The element of the InputRange returned by pullParseFile and pullParseSource.

Functions

parseFile
Tag parseFile(string filename)

Returns root tag.

parseSource
Tag parseSource(string source, string filename)

Returns root tag. The optional filename parameter can be included so that the SDLang document's filename (if any) can be displayed with any syntax error messages.

pullParseFile
auto pullParseFile(string filename)
pullParseSource
auto pullParseSource(string source, string filename)

Parses an SDL document using StAX/Pull-style. Returns an InputRange with element type ParserEvent.

Structs

AttributeEvent
struct AttributeEvent

Event: Found an Attribute in the current tag

TagEndEvent
struct TagEndEvent

Event: End of tag

TagStartEvent
struct TagStartEvent

Event: Start of tag

ValueEvent
struct ValueEvent

Event: Found a Value in the current tag

Meta