From 58ee992c0f24c9e0d2632995418ff2a8c370b719 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 10 May 2023 11:22:09 -0300 Subject: [PATCH] [Electro Grammar][Adde] Simple tool to test it from the CLI --- tools/electro-grammar.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tools/electro-grammar.py diff --git a/tools/electro-grammar.py b/tools/electro-grammar.py new file mode 100755 index 00000000..b128cc8c --- /dev/null +++ b/tools/electro-grammar.py @@ -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)