feat WIP: checkpoint initial efforts on stream extraction
Some checks failed
continuous-integration/drone/push Build is failing

Adds ! operator and !! expression, with Python code gen and
  an item in tour.
  Still needs: other languages, check generated docs, and addition
  of standard input to test scheme.
This commit is contained in:
Glen Whitney 2021-03-01 20:51:12 -08:00
parent cc89ad1e93
commit 7c69b82484
5 changed files with 49 additions and 1 deletions

View file

@ -42,10 +42,13 @@ context-free syntax
Ex.EscString = STRING
Ex.Stream = <stream>
Ex.Sum = <<Ex> + <Ex>> {left}
Ex.Concat = <<Ex> ++ <Ex>> {left}
Ex.Gets = [[Ex] << [Ex]] {left}
Ex.DefGets = [<<< [Ex]]
Ex.To = [[Ex] >> [Ex]] {left}
Ex.DefTo = [[Ex] >>>]
Ex.Emits = <<Ex>!>
Ex.DefEmits = <!!>
Ex = <(<Ex>)> {bracket}
@ -53,7 +56,7 @@ context-free priorities
Ex.To
> Ex.DefTo
> Ex.Sum
> {Ex.Sum Ex.Concat}
> Ex.DefGets
> Ex.Gets,