mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Add icon and embed common.lark for packaging IFCCSV
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
+26
-4
@@ -35,10 +35,32 @@ class IfcSelectorParser():
|
|||||||
morethan: ">"
|
morethan: ">"
|
||||||
lessthan: "<"
|
lessthan: "<"
|
||||||
|
|
||||||
%import common.WORD // imports from terminal library
|
// Embed common.lark for packaging
|
||||||
%import common.ESCAPED_STRING
|
DIGIT: "0".."9"
|
||||||
%import common.WS
|
HEXDIGIT: "a".."f"|"A".."F"|DIGIT
|
||||||
%ignore WS // Disregard spaces in text
|
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)
|
start = l.parse(self.query)
|
||||||
|
|||||||
Reference in New Issue
Block a user