Skip to content

Commit

Permalink
Merge pull request #26 from stasm/expr
Browse files Browse the repository at this point in the history
Simplify Expressions
  • Loading branch information
stasm authored Feb 1, 2017
2 parents 558a1b5 + 1d55148 commit 23d3c6d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions fluent.asdl
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,19 @@ module Fluent
| Junk(string body)

-- Pattern values
pat = Pattern(elem* elements, bool quoted)
elem = String(string)
| Placeable(plcbl)
pat = Pattern(expr* elements, bool quoted)

-- Expressions allowed inside of braced Placeables
plcbl = Expression(expr)
| SelectExpression(expr? expr, var* vars)

-- Expressions allowed as selectors of SelectExpression and
-- arguments to CallExpression
-- Expressions
expr = Pattern(pat)
| String(string)
| Number(number)
| MessageReference(iden id)
| ExternalArgument(iden id)
| SelectExpression(expr? expr, var* vars)
| AttributeExpression(iden id, iden name)
| VariantExpression(iden id, varkey key)
| CallExpression(fun callee, arg* args)
| Placeable(plcbl)
| Expression(expr)

-- Attributes of Message
attr = Attribute(iden id, pat value)
Expand Down

0 comments on commit 23d3c6d

Please sign in to comment.