Files
jsix/scripts/test_parse_definitions.py
Justin C. Miller d04b2ae315 [tools] Allow struct types in definitions
Allow struct type names in definitions, which result in struct buffer
pointers in generated code.
2022-10-06 23:15:20 -07:00

11 lines
253 B
Python

import sys
from pathlib import Path
from definitions.context import Context
root = Path(sys.argv[0]).parent.parent
defs_path = (root / "definitions").resolve()
print(f"Definitions: {defs_path}")
ctx = Context(str(defs_path))
ctx.parse("syscalls.def")