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