mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
reorganization: Finish moving parsing and AST
This commit is contained in:
parent
8f9de81e24
commit
ee5f32622f
27 changed files with 737 additions and 719 deletions
|
@ -530,5 +530,7 @@ def to_parse_node(value) -> ParseNode:
|
|||
return Sequence(*value)
|
||||
elif isinstance(value, type) and hasattr(value, "grammar"):
|
||||
return Group(value, getattr(value, "grammar"))
|
||||
else:
|
||||
elif isinstance(value, ParseNode):
|
||||
return value
|
||||
else:
|
||||
raise CompilerBugError()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue