OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library polymer_expressions.tokenizer; | 5 library polymer_expressions.tokenizer; |
6 | 6 |
7 const int _TAB = 9; | 7 const int _TAB = 9; |
8 const int _LF = 10; | 8 const int _LF = 10; |
9 const int _VTAB = 11; | 9 const int _VTAB = 11; |
10 const int _FF = 12; | 10 const int _FF = 12; |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 _tokens.add(new Token(GROUPER_TOKEN, value, _PRECEDENCE[value])); | 299 _tokens.add(new Token(GROUPER_TOKEN, value, _PRECEDENCE[value])); |
300 _advance(); | 300 _advance(); |
301 } | 301 } |
302 } | 302 } |
303 | 303 |
304 class ParseException implements Exception { | 304 class ParseException implements Exception { |
305 final String message; | 305 final String message; |
306 ParseException(this.message); | 306 ParseException(this.message); |
307 String toString() => "ParseException: $message"; | 307 String toString() => "ParseException: $message"; |
308 } | 308 } |
OLD | NEW |