| 72 | 'items' will be on the table |
| 73 | */ |
| 74 | struct Item |
| 75 | { |
| 76 | // name of a variable of a function |
| 77 | // internally we store variables and funcions as std::string (not std::wstring even when wide characters are used) |
| 78 | std::string value; |
| 79 | |
| 80 | // number of parameters required by the function |
| 81 | // (if there's a variable this 'param' is ignored) |
| 82 | int param; |
| 83 | |
| 84 | Item() {} |
| 85 | Item(const std::string & v, int p) : value(v), param(p) {} |
| 86 | }; |
| 87 | |
| 88 | // 'Table' is the type of our table |
| 89 | typedef std::map<std::string, Item> Table; |