| 1787 | |
| 1788 | |
| 1789 | static int funcname (LexState *ls, expdesc *v) { |
| 1790 | /* funcname -> NAME {fieldsel} [':' NAME] */ |
| 1791 | int ismethod = 0; |
| 1792 | singlevar(ls, v); |
| 1793 | while (ls->t.token == '.') |
| 1794 | fieldsel(ls, v); |
| 1795 | if (ls->t.token == ':') { |
| 1796 | ismethod = 1; |
| 1797 | fieldsel(ls, v); |
| 1798 | } |
| 1799 | return ismethod; |
| 1800 | } |
| 1801 | |
| 1802 | |
| 1803 | static void funcstat (LexState *ls, int line) { |