Skip to content

Commit

Permalink
Attempt to add a 'dup' operator/parsing word
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Nov 3, 2009
1 parent 7f84b6c commit 4af0208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/grammar-oper.pg
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## expressions and operators ## expressions and operators
proto 'term:' is precedence('=') is parsed(&term) { ... } proto 'term:' is precedence('=') is parsed(&term) { ... }


proto prefix:<dup> is equiv(infix:<+>) is pirop('dup') { ... }

## multiplicative operators ## multiplicative operators
proto infix:<*> is looser(term:) is pirop('mul') { ... } proto infix:<*> is looser(term:) is pirop('mul') { ... }
proto infix:</> is equiv(infix:<*>) is pirop('div') { ... } proto infix:</> is equiv(infix:<*>) is pirop('div') { ... }
Expand Down

0 comments on commit 4af0208

Please sign in to comment.