Permalink
Browse files

[feature] compiler, syntax, database: Syntax for field any [_]

  • Loading branch information...
1 parent e2054f8 commit 54c4233652c9fac08835a9945af819c81e51505d @BourgerieQuentin BourgerieQuentin committed May 15, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 opalang/classic_syntax/parser_path.trx
@@ -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}}
(* ******************************************************************)

0 comments on commit 54c4233

Please sign in to comment.