| 1997 | |
| 1998 | |
| 1999 | static void exprstat (LexState *ls) { |
| 2000 | /* stat -> func | assignment */ |
| 2001 | FuncState *fs = ls->fs; |
| 2002 | struct LHS_assign v; |
| 2003 | suffixedexp(ls, &v.v); |
| 2004 | if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */ |
| 2005 | v.prev = NULL; |
| 2006 | restassign(ls, &v, 1); |
| 2007 | } |
| 2008 | else { /* stat -> func */ |
| 2009 | Instruction *inst; |
| 2010 | check_condition(ls, v.v.k == VCALL, "syntax error"); |
| 2011 | inst = &getinstruction(fs, &v.v); |
| 2012 | SETARG_C(*inst, 1); /* call statement uses no results */ |
| 2013 | } |
| 2014 | } |
| 2015 | |
| 2016 | |
| 2017 | static void retstat (LexState *ls) { |
no test coverage detected