| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RUNTIME_VM_REGEXP_PARSER_H_ | 5 #ifndef RUNTIME_VM_REGEXP_PARSER_H_ |
| 6 #define RUNTIME_VM_REGEXP_PARSER_H_ | 6 #define RUNTIME_VM_REGEXP_PARSER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 #include "vm/regexp_ast.h" | 10 #include "vm/regexp_ast.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 Zone* zone() const { return zone_; } | 36 Zone* zone() const { return zone_; } |
| 37 | 37 |
| 38 Zone* zone_; | 38 Zone* zone_; |
| 39 bool pending_empty_; | 39 bool pending_empty_; |
| 40 ZoneGrowableArray<uint16_t>* characters_; | 40 ZoneGrowableArray<uint16_t>* characters_; |
| 41 GrowableArray<RegExpTree*> terms_; | 41 GrowableArray<RegExpTree*> terms_; |
| 42 GrowableArray<RegExpTree*> text_; | 42 GrowableArray<RegExpTree*> text_; |
| 43 GrowableArray<RegExpTree*> alternatives_; | 43 GrowableArray<RegExpTree*> alternatives_; |
| 44 #ifdef DEBUG | 44 #ifdef DEBUG |
| 45 enum { ADD_NONE, ADD_CHAR, ADD_TERM, ADD_ASSERT, ADD_ATOM } last_added_; | 45 enum {ADD_NONE, ADD_CHAR, ADD_TERM, ADD_ASSERT, ADD_ATOM} last_added_; |
| 46 #define LAST(x) last_added_ = x; | 46 #define LAST(x) last_added_ = x; |
| 47 #else | 47 #else |
| 48 #define LAST(x) | 48 #define LAST(x) |
| 49 #endif | 49 #endif |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 class RegExpParser : public ValueObject { | 52 class RegExpParser : public ValueObject { |
| 53 public: | 53 public: |
| 54 RegExpParser(const String& in, String* error, bool multiline_mode); | 54 RegExpParser(const String& in, String* error, bool multiline_mode); |
| 55 | 55 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 bool multiline_; | 165 bool multiline_; |
| 166 bool simple_; | 166 bool simple_; |
| 167 bool contains_anchor_; | 167 bool contains_anchor_; |
| 168 bool is_scanned_for_captures_; | 168 bool is_scanned_for_captures_; |
| 169 bool failed_; | 169 bool failed_; |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 } // namespace dart | 172 } // namespace dart |
| 173 | 173 |
| 174 #endif // RUNTIME_VM_REGEXP_PARSER_H_ | 174 #endif // RUNTIME_VM_REGEXP_PARSER_H_ |
| OLD | NEW |