Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
records [2021/10/28 18:24] – Added grammar for records. sprowellrecords [2021/10/28 18:27] (current) – Added grammar for simple rules and binds. sprowell
Line 13: Line 13:
  
 <code> <code>
-record = "{" ~ { untyped_symbol ~ "=>" ~ term ~ ","? }~ "}"+record = "{" ~ { untyped_symbol ~ "=>" ~ term ~ ","? }~ "}"
 </code> </code>
  
Line 39: Line 39:
 { $x => 21 } . ( $x -> 17 ) { $x => 21 } . ( $x -> 17 )
 --> $x -> 17 --> $x -> 17
 +</code>
 +
 +<code>
 +bind = "{" ~ { untyped_variable ~ "=>" ~ term ","? }* ~ "}"
 </code> </code>
  
Line 60: Line 64:
 } . %("Fred", "Flintstone") } . %("Fred", "Flintstone")
 --> "FredFlintstone" --> "FredFlintstone"
 +</code>
 +
 +<code>
 +simple_rule = "{" ~ { lambda ~ ","? }+ ~ "}"
 </code> </code>