1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00
anselme/test/tests/choice with decorators.ans
Étienne Reuh Fildadut f2e74c94c9 Changed a few things
* Integrated # and ~ decorators into the expression system. Created associated operators.
* # and ~ decorators only affect their current line. That's more useful...
* Fix our priority system to evaluate left-to-right instead of right-to-left (if there was a reason why I did it this way initially, I don't remember it so ¯\_(ツ)_/¯)
* a lotta internal changes

Various other small adjustments, see the diff of REFERENCE.md for details.
2021-11-28 01:43:54 +01:00

35 lines
240 B
Text

> a ~ 1
-> a
> b
-> b
~ choose(1)
> a ~ 1
-> a
> b
-> b
~ choose(2)
> a ~ 0
-> a
> b
-> b
~ choose(1)
> a
-> a
> b # 25
-> b
~ choose(2)
> a ~ 0 # 12
-> a
> b # 3
-> b
~ choose(1)
> a ~ 1 # 12
-> a
> b # 3
-> b
~ choose(1)