mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
Allow struct type names in definitions, which result in struct buffer pointers in generated code.
11 lines
253 B
Python
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")
|
|
|