mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Add GObject Introspection integration
- Parse .gir files - Validate class, property, and signal names
This commit is contained in:
parent
2ad2f1c54a
commit
e553e5db29
10 changed files with 734 additions and 58 deletions
|
@ -21,7 +21,7 @@
|
|||
import re
|
||||
from enum import Enum
|
||||
|
||||
from .errors import TokenizeError
|
||||
from .errors import CompileError
|
||||
|
||||
|
||||
class TokenType(Enum):
|
||||
|
@ -106,7 +106,7 @@ def _tokenize(ui_ml: str):
|
|||
break
|
||||
|
||||
if not matched:
|
||||
raise TokenizeError(i)
|
||||
raise CompileError("Could not determine what kind of syntax is meant here", i)
|
||||
|
||||
yield Token(TokenType.EOF, i, i, ui_ml)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue