-
Notifications
You must be signed in to change notification settings - Fork 6
Quickstart
José A. Rodríguez Gallego edited this page Jan 24, 2023
·
2 revisions
Clone the repository:
git clone https://github.com/RGNC/plingua.git
Use cmake
:
make grammar
make compiler
make simulator
sudo make install
Launch your first example:
/* demo.pli */
@model<example_model>
!pattern_a_b { [a --> b]'h; }
@model(example_model) = pattern_a_b;
def main() {
@mu = [ [ [ ]'3 [ ]'4 ]'2 ]'1;
@ms(1) += a;
[a -> b]'1;
}
Now simulate the model with P-Lingua 5.0:
plingua demo.pli -o demo.json -f json
or compile it in XML, JSON or BIN to further use:
plingua demo.pli -o demo.xml -f xml
plingua demo.pli -o demo.json -f json
plingua demo.pli -o demo.bin -f bin
Have fun with P-Lingua 5.0!