diff options
Diffstat (limited to 'modules/gdscript/gd_parser.h')
-rw-r--r-- | modules/gdscript/gd_parser.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/gdscript/gd_parser.h b/modules/gdscript/gd_parser.h index 278e5f543d..50b84d389a 100644 --- a/modules/gdscript/gd_parser.h +++ b/modules/gdscript/gd_parser.h @@ -183,6 +183,7 @@ public: //call/constructor operator OP_CALL, OP_PARENT_CALL, + OP_YIELD, OP_EXTENDS, //indexing operator OP_INDEX, @@ -225,7 +226,7 @@ public: OP_ASSIGN_BIT_XOR, OP_BIT_AND, OP_BIT_OR, - OP_BIT_XOR + OP_BIT_XOR, }; Operator op; @@ -258,6 +259,7 @@ public: Node* condition; AssertNode() { type=TYPE_ASSERT; } }; + struct NewLineNode : public Node { int line; NewLineNode() { type=TYPE_NEWLINE; } @@ -356,12 +358,15 @@ private: template<class T> T* alloc_node(); + bool validating; int parenthesis; bool error_set; String error; int error_line; int error_column; + int pending_newline; + List<int> tab_level; String base_path; @@ -390,7 +395,7 @@ public: String get_error() const; int get_error_line() const; int get_error_column() const; - Error parse(const String& p_code,const String& p_base_path=""); + Error parse(const String& p_code, const String& p_base_path="", bool p_just_validate=false); Error parse_bytecode(const Vector<uint8_t> &p_bytecode,const String& p_base_path=""); const Node *get_parse_tree() const; |