Module 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" }
}
});
Functions
Name | Description |
---|---|
parseML
|
Parse DlangUI ML code
|
tokenizeML
|
tokenize source into array of tokens (excluding EOF) |
Classes
Name | Description |
---|---|
MLParser
|
|
ParserException
|
|
Tokenizer
|
simple tokenizer for DlangUI ML |
UnknownPropertyException
|
parser exception - unknown property for widget |
UnknownWidgetException
|
parser exception - unknown (unregistered) widget name |
Structs
Name | Description |
---|---|
Token
|
Enums
Name | Description |
---|---|
TokenType
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2015
License
Boost License 1.0