| 1813 | |
| 1814 | |
| 1815 | static void exprstat (LexState *ls) { |
| 1816 | /* stat -> func | assignment */ |
| 1817 | FuncState *fs = ls->fs; |
| 1818 | struct LHS_assign v; |
| 1819 | suffixedexp(ls, &v.v); |
| 1820 | if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */ |
| 1821 | v.prev = NULL; |
| 1822 | restassign(ls, &v, 1); |
| 1823 | } |
| 1824 | else { /* stat -> func */ |
| 1825 | Instruction *inst = &getinstruction(fs, &v.v); |
| 1826 | check_condition(ls, v.v.k == VCALL, "syntax error"); |
| 1827 | SETARG_C(*inst, 1); /* call statement uses no results */ |
| 1828 | } |
| 1829 | } |
| 1830 | |
| 1831 | |
| 1832 | static void retstat (LexState *ls) { |
no test coverage detected