[Groonga-commit] groonga/groonga at 7b7f3dc [master] Support REGEXP in parser

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 10 18:33:35 JST 2015


Kouhei Sutou	2015-03-10 18:33:35 +0900 (Tue, 10 Mar 2015)

  New Revision: 7b7f3dcfc6b03508a7eb78a3e072e6dc960d4a59
  https://github.com/groonga/groonga/commit/7b7f3dcfc6b03508a7eb78a3e072e6dc960d4a59

  Message:
    Support REGEXP in parser
    
    Lexer doesn't support it yet.

  Modified files:
    lib/grn_ecmascript.lemon

  Modified: lib/grn_ecmascript.lemon (+3 -0)
===================================================================
--- lib/grn_ecmascript.lemon    2015-03-10 17:32:19 +0900 (322d7ac)
+++ lib/grn_ecmascript.lemon    2015-03-10 18:33:35 +0900 (1d81265)
@@ -219,6 +219,9 @@ relational_expression ::= relational_expression PREFIX shift_expression. {
 relational_expression ::= relational_expression SUFFIX shift_expression. {
   grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SUFFIX, 2);
 }
+relational_expression ::= relational_expression REGEXP shift_expression. {
+  grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_REGEXP, 2);
+}
 
 shift_expression ::= additive_expression.
 shift_expression ::= shift_expression SHIFTL additive_expression. {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index