feat: Add SPT as an alternate means of running Stratego strategies

Also completed and documented Sec 4.2 of the Stratego
Tutorial/Reference manual
This commit is contained in:
Glen Whitney 2021-01-16 15:11:47 -08:00
parent 2357e1f220
commit 28a3370d03
3 changed files with 100 additions and 5 deletions

12
test/manual-suite.spt Normal file
View file

@ -0,0 +1,12 @@
module manual-suite
language Spoofax-Propositional-Language
test sec4_2_test3 [[
(r -> p & q) & p
]] run dnf to Atom("x")
test sec4_2_test3_ex [[
(r -> p & q) & p
]] run dnf to Or(And(Not(Atom("r")),Atom("p")),And(And(Atom("p"),Atom("q")),Atom("p")))