Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
records [2021/10/28 18:13] sprowellrecords [2021/10/28 18:27] (current) – Added grammar for simple rules and binds. sprowell
Line 11: Line 11:
  
 Note that the terms in a record can be anything, including other records. Note that the terms in a record can be anything, including other records.
 +
 +<code>
 +record = "{" ~ { untyped_symbol ~ "=>" ~ term ~ ","? }+ ~ "}"
 +</code>
  
 ===== Binds ===== ===== Binds =====
Line 35: Line 39:
 { $x => 21 } . ( $x -> 17 ) { $x => 21 } . ( $x -> 17 )
 --> $x -> 17 --> $x -> 17
 +</code>
 +
 +<code>
 +bind = "{" ~ { untyped_variable ~ "=>" ~ term ","? }* ~ "}"
 </code> </code>
  
Line 56: Line 64:
 } . %("Fred", "Flintstone") } . %("Fred", "Flintstone")
 --> "FredFlintstone" --> "FredFlintstone"
 +</code>
 +
 +<code>
 +simple_rule = "{" ~ { lambda ~ ","? }+ ~ "}"
 </code> </code>