Changeset 430 for EcnlProtoTool/trunk/webapp/webmrbc/mrb_parse.jay
- Timestamp:
- Jul 3, 2020, 7:29:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/webapp/webmrbc/mrb_parse.jay
r321 r430 10 10 // [this has not been done here to stress-test the skeleton] 11 11 using System; 12 using System.Collections.Generic; 13 using System.Text.RegularExpressions; 12 14 using Bridge; 13 15 using Bridge.Html5; … … 402 404 if ($1 == null) $$ = new_nil(); 403 405 else{ 404 void_expr_error($1);405 406 $$ = $1; 406 407 } … … 414 415 block_command : block_call 415 416 | block_call call_op2 operation2 command_args 417 { 418 $$ = new_call($1, $3, $4, $2); 419 } 416 420 ; 417 421 … … 659 663 | primary_value tCOLON2 cname 660 664 { 665 void_expr_error($1); 661 666 $$ = cons($1, $3); 662 667 } … … 929 934 arg_rhs : arg %prec tOP_ASGN 930 935 { 936 $$ = $1; 937 } 938 | arg modifier_rescue arg 939 { 931 940 void_expr_error($1); 932 $$ = $1; 933 } 934 | arg modifier_rescue arg 935 { 936 void_expr_error($1); 941 void_expr_error($3); 937 942 $$ = new_mod_rescue($1, $3); 938 943 } … … 970 975 call_args : command 971 976 { 977 void_expr_error($1); 972 978 $$ = cons(list1($1), null); 973 979 $<node>$.NODE_LINENO($1); … … 2107 2113 f_opt : f_opt_asgn arg 2108 2114 { 2115 void_expr_error($2); 2109 2116 $$ = cons($1, $2); 2110 2117 } … … 2113 2120 f_block_opt : f_opt_asgn primary_value 2114 2121 { 2122 void_expr_error($2); 2115 2123 $$ = cons($1, $2); 2116 2124 } … … 2226 2234 assoc : arg tASSOC arg 2227 2235 { 2236 void_expr_error($1); 2237 void_expr_error($3); 2228 2238 $$ = cons($1, $3); 2229 2239 } 2230 2240 | tLABEL arg 2231 2241 { 2242 void_expr_error($2); 2232 2243 $$ = cons(new_sym($1), $2); 2233 2244 } 2234 2245 | tLABEL_END arg 2235 2246 { 2247 void_expr_error($2); 2236 2248 $$ = cons(new_sym(new_strsym($1)), $2); 2237 2249 } 2238 2250 | tSTRING_BEG tLABEL_END arg 2239 2251 { 2252 void_expr_error($3); 2240 2253 $$ = cons(new_sym(new_strsym($2)), $3); 2241 2254 } 2242 2255 | tSTRING_BEG string_rep tLABEL_END arg 2243 2256 { 2257 void_expr_error($4); 2244 2258 $$ = cons(new_dsym(push($2, $3)), $4); 2245 2259 }
Note:
See TracChangeset
for help on using the changeset viewer.