swissChili | c71acc6 | 2021-12-07 08:03:37 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "Token.h" |
| 4 | |
| 5 | class AstNode : public TokenBase<AstNode> |
| 6 | { |
| 7 | public: |
swissChili | c8894fa | 2022-04-16 19:21:56 -0700 | [diff] [blame] | 8 | using TokenBase<AstNode>::TokenBase; |
swissChili | c71acc6 | 2021-12-07 08:03:37 -0800 | [diff] [blame] | 9 | |
swissChili | 918557c | 2022-02-20 20:16:34 -0800 | [diff] [blame] | 10 | AstNode(QString function, QList<AstNode> args); |
swissChili | c71acc6 | 2021-12-07 08:03:37 -0800 | [diff] [blame] | 11 | |
| 12 | enum |
| 13 | { |
| 14 | FUNC = TOKEN_TYPE_LAST |
| 15 | }; |
| 16 | |
| 17 | QList<AstNode> funcArgs(); |
| 18 | |
| 19 | bool isFunc() const; |
| 20 | |
| 21 | operator QString() const; |
| 22 | }; |