Add icon and embed common.lark for packaging IFCCSV

This commit is contained in:
Dion Moult
2020-03-16 14:54:45 +11:00
parent a5b5b10d29
commit 8ba9b37ec9
2 changed files with 26 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+26 -4
View File
@@ -35,10 +35,32 @@ class IfcSelectorParser():
morethan: ">"
lessthan: "<"
%import common.WORD // imports from terminal library
%import common.ESCAPED_STRING
%import common.WS
%ignore WS // Disregard spaces in text
// Embed common.lark for packaging
DIGIT: "0".."9"
HEXDIGIT: "a".."f"|"A".."F"|DIGIT
INT: DIGIT+
SIGNED_INT: ["+"|"-"] INT
DECIMAL: INT "." INT? | "." INT
_EXP: ("e"|"E") SIGNED_INT
FLOAT: INT _EXP | DECIMAL _EXP?
SIGNED_FLOAT: ["+"|"-"] FLOAT
NUMBER: FLOAT | INT
SIGNED_NUMBER: ["+"|"-"] NUMBER
_STRING_INNER: /.*?/
_STRING_ESC_INNER: _STRING_INNER /(?<!\\\\)(\\\\\\\\)*?/
ESCAPED_STRING : "\\"" _STRING_ESC_INNER "\\""
LCASE_LETTER: "a".."z"
UCASE_LETTER: "A".."Z"
LETTER: UCASE_LETTER | LCASE_LETTER
WORD: LETTER+
CNAME: ("_"|LETTER) ("_"|LETTER|DIGIT)*
WS_INLINE: (" "|/\\t/)+
WS: /[ \\t\\f\\r\\n]/+
CR : /\\r/
LF : /\\n/
NEWLINE: (CR? LF)+
%ignore WS // Disregard spaces in text
''')
start = l.parse(self.query)