mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
stream - remove trailing spaces
This commit is contained in:
@@ -107,9 +107,9 @@ try:
|
||||
# common.INT doesn't support negative integers.
|
||||
grammar = r"""
|
||||
start: "#" NUMBER "=" TYPE "(" args ")" ";"
|
||||
|
||||
|
||||
args: arg ("," arg)*
|
||||
|
||||
|
||||
arg: STRING -> string
|
||||
| FLOAT -> float
|
||||
| IFCINT -> ifcint
|
||||
@@ -119,21 +119,21 @@ try:
|
||||
| REFERENCE -> reference
|
||||
| list -> list
|
||||
| inline_type -> inline_type
|
||||
|
||||
|
||||
list: "(" arg? ("," arg)* ")"
|
||||
inline_type: TYPE "(" arg ")"
|
||||
REFERENCE: "#" /[0-9]+/
|
||||
|
||||
|
||||
TYPE: CNAME
|
||||
NUMBER: INT
|
||||
|
||||
|
||||
STRING: "'" /([^']|'')*/ "'"
|
||||
IFCINT: /-?[0-9]+/
|
||||
FLOAT: /-?[0-9]+\.[0-9]*([Ee]-?[0-9]+)?/
|
||||
NULL: "$"
|
||||
DERIVED: "*"
|
||||
ENUM: "." CNAME "."
|
||||
|
||||
|
||||
%import common.INT
|
||||
%import common.CNAME
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user