Skip to content

Commit

Permalink
[feature] compiler, syntax, database: Syntax for field any [_]
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed May 15, 2012
1 parent e2054f8 commit 54c4233
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions opalang/classic_syntax/parser_path.trx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@ field_string <- Opa_lexer.field_identifier_nosp

field_expr <- lbracket Opa_parser.expr:e rbracket {{e}}

field_both <-
field_any <- lbracket Opa_lexer.underscore_nosp rbracket

field_one <-
/ field_string:s {{`string s}}
/ field_any {{`any}}
/ field_expr:s {{`expr s}}

field_long <- spacing field_both+:l {{l}}
field_long <- spacing field_one+:l {{l}}


(* ******************************************************************)
Expand Down

0 comments on commit 54c4233

Please sign in to comment.