[Electro Grammar][Adde] Simple tool to test it from the CLI

This commit is contained in:
Salvador E. Tropea 2023-05-10 11:22:09 -03:00
parent 119d8fd2e2
commit 58ee992c0f
1 changed files with 8 additions and 0 deletions

8
tools/electro-grammar.py Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/python3
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from kibot.bom.electro_grammar import parse
res = parse(sys.argv[1], with_extra=True, stronger=True)
print(res)