Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Attempt to add a 'dup' operator/parsing word

  • Loading branch information...
commit 4af0208a909422d13ccf4de7a67c9a835602833a 1 parent 7f84b6c
@leto authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/parser/grammar-oper.pg
View
2  src/parser/grammar-oper.pg
@@ -3,6 +3,8 @@
## expressions and operators
proto 'term:' is precedence('=') is parsed(&term) { ... }
+proto prefix:<dup> is equiv(infix:<+>) is pirop('dup') { ... }
+
## multiplicative operators
proto infix:<*> is looser(term:) is pirop('mul') { ... }
proto infix:</> is equiv(infix:<*>) is pirop('div') { ... }
Please sign in to comment.
Something went wrong with that request. Please try again.