 # captures below.
 
 # An expression is a list of one or more values separated by operators
-expr: value+ % op
+expr: value (op value)*
 
 # Capture an operator. One of: + - * / ^ (with optional whitespace)
 op: /~([<PLUS><DASH><STAR><SLASH><CARET>])~/


  # http://en.wikipedia.org/wiki/Shunting-yard_algorithm
  got_expr: (expr) ->
    [out, ops] = [[],[]]
    out.push expr.shift()
    while expr.length

#
# Originally inspired by:
#   https://github.com/dmajda/pegjs/blob/master/examples/arithmetics.pegjs

{pegex} = require '../lib/Pegex'
require '../lib/Pegex/Receiver'
