Toy robot DSL implemented in textX
This DSL requires textX.
pip install textX
pip install .
Using directly the textx
command:
textx generate example.robot --target dot
dot -Tpng -O example.dot
open example.dot.png
From Python 3:
from textx import metamodel_from_file
robot_meta = metamodel_from_file('tx_robot/robot.tx')
example_robot_model = robot_meta.model_from_file('example.robot')
example_robot_model.name
VS Code extension:
- Install the textX extension on VS Code.
- Open the root folder of the repository:
code .
- Right click to
setup.py
and Install textX project. - Browse any
*.robot
file.