UlyssesZh / UlyssesZh.github.io

Ulysses Zhan's blog!
https://UlyssesZh.github.io
MIT License
3 stars 3 forks source link

Writing a DSL with commands split by space | Ulysses’ trip #19

Open UlyssesZh opened 4 years ago

UlyssesZh commented 4 years ago

https://ulysseszh.github.io/programming/2020/04/27/space-split-dsl.html

We want to have a DSL where we can write statements separated with space. Like this: Robot.new do a b c d e f g h i j end.run outputs Go to a Go to b Go to c Go to d Go to e Go to f Go to g Go to h Go to i Go to j