- Timestamp:
- 03/24/15 20:52:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/framscript.y
r337 r341 1010 1010 } 1011 1011 1012 | expr '.' member1012 | stackexpr '.' member 1013 1013 { trctx.emitLine(); $$.constant=0; $$.ident=0; SString t=$1.getString(); t+="."; t+=$3.getString(); $$.setString(t); 1014 1014 if ($3.constant) … … 1019 1019 } 1020 1020 1021 | plusminus expr '.' member1021 | plusminus stackexpr '.' member 1022 1022 { trctx.emitLine(); $$.constant=0; $$.ident=0; SString t=$2.getString(); t+="."; t+=$4.getString(); $$.setString(t); 1023 1023 if ($4.constant) … … 1030 1030 } 1031 1031 1032 | expr '.' member plusminus1032 | stackexpr '.' member plusminus 1033 1033 { trctx.emitLine(); $$.constant=0; $$.ident=0; SString t=$1.getString(); t+="."; t+=$3.getString(); $$.setString(t); 1034 1034 if ($3.constant) … … 1041 1041 } 1042 1042 1043 | expr '.' member assign_op expr1043 | stackexpr '.' member assign_op expr 1044 1044 { trctx.emitLine(); $$.constant=0; $$.ident=0; SString t=$1.getString(); t+="."; t+=$3.getString(); $$.setString(t); 1045 1045 if ($3.constant) … … 1069 1069 } 1070 1070 1071 | expr '.' member '=' stackexpr1071 | stackexpr '.' member '=' stackexpr 1072 1072 { trctx.emitLine(); $$=$5; $$.assign=1; $$.parens=0; $$.ident=0; 1073 1073 if ($3.constant) … … 1083 1083 } 1084 1084 1085 | expr '.' member '(' arguments ')'1085 | stackexpr '.' member '(' arguments ')' 1086 1086 { trctx.emitLine(); $$.constant=0; $$.ident=0; SString t=$1.getString(); t+="."; t+=$3.getString(); $$.setString(t); 1087 1087 int adj=0; … … 1106 1106 } 1107 1107 1108 | expr '[' expr ']' '=' expr // shortcut: expr.set(expr,expr)1108 | stackexpr '[' expr ']' '=' expr // shortcut: expr.set(expr,expr) 1109 1109 { trctx.emitLine(); $$=$6; $$.assign=1; $$.parens=0; $$.ident=0; 1110 1110 if ($3.constant) … … 1124 1124 } 1125 1125 1126 | expr '[' expr ']' /* shortcut: expr.get(expr) */1126 | stackexpr '[' expr ']' /* shortcut: expr.get(expr) */ 1127 1127 { trctx.emitLine(); $$.constant=0; $$.ident=0; SString t=$1.getString(); t+=".get"; $$.setString(t); 1128 1128 if ($3.constant)
Note: See TracChangeset
for help on using the changeset viewer.