dlangui.dml.parser

This module is DML (DlangUI Markup Language) parser - similar to QML in QtQuick

Synopsis:

Widget layout = parseML(q{
    VerticalLayout {
        TextWidget { text: "Some label" }
        TextLine { id: editor; text: "Some text to edit" }
        Button { id: btnOk; text: "Ok" }
    }
});

Public Imports

dlangui.dml.annotations
public import dlangui.dml.annotations;
Undocumented in source.
dlangui.dml.tokenizer
public import dlangui.dml.tokenizer;
Undocumented in source.

Members

Classes

MLParser
class MLParser
Undocumented in source.
UnknownPropertyException
class UnknownPropertyException

parser exception - unknown property for widget

UnknownWidgetException
class UnknownWidgetException

parser exception - unknown (unregistered) widget name

Functions

parseML
T parseML(string code, string filename, Widget context)

Parse DlangUI ML code

tokenizeML
Token[] tokenizeML(const(dstring[]) lines)

tokenize source into array of tokens (excluding EOF)

tokenizeML
Token[] tokenizeML(const(string[]) lines)

tokenize source into array of tokens (excluding EOF)

tokenizeML
Token[] tokenizeML(string code)

tokenize source into array of tokens (excluding EOF)

Meta

License

Boost License 1.0

Authors

Vadim Lopatin, coolreader.org@gmail.com