Grammar

A wrapper around the basic template grammar for parsing a diamond template.

Constructors

this
this(string name, char startCharacter, char endCharacter, ContentMode contentMode, CharacterIncludeMode characterIncludeMode, bool includeStatementCharacter, bool ignoreDepth, char mandatoryStartCharacter = '\0')

Creates a new template grammar.

Members

Properties

characterIncludeMode
const(CharacterIncludeMode) characterIncludeMode [@property getter]

Gets the character include mode.

contentMode
const(ContentMode) contentMode [@property getter]

Gets the content mode.

endCharacter
const(char) endCharacter [@property getter]

Gets the end character.

ignoreDepth
const(bool) ignoreDepth [@property getter]

Gets a boolean determining whether the grammar should ignore depth or not.

includeStatementCharacter
const(bool) includeStatementCharacter [@property getter]

Gets a boolean determining whether the statement character should be included.

mandatoryStartCharacter
const(char) mandatoryStartCharacter [@property getter]

Gets a character that must follow the start character. '\0' indicates no character.

name
const(string) name [@property getter]

Gets the name.

startCharacter
const(char) startCharacter [@property getter]

Gets the start character.

Meta