Module dcanvas.dml.parser
DML (DCanvas 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(code, filename, context)
|
Parse DCanvas ML code |
tokenizeML(lines)
|
tokenize source into array of tokens (excluding EOF) |
Classes
| Name | Description |
|---|---|
MLParser
|
|
UnknownPropertyException
|
parser exception - unknown property for widget |
UnknownWidgetException
|
parser exception - unknown (unregistered) widget name |