Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: pkg/polymer_expressions/lib/tokenizer.dart

Issue 148883006: polymer_expressions: Add % as an operator. Test all operators.. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/polymer_expressions/test/parser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer_expressions/lib/tokenizer.dart
diff --git a/pkg/polymer_expressions/lib/tokenizer.dart b/pkg/polymer_expressions/lib/tokenizer.dart
index 6d3f2c928ad23a3f8fbb23f3b83911d7e9f010fe..fb660877d2849b49b395d217cd7179540083f25a 100644
--- a/pkg/polymer_expressions/lib/tokenizer.dart
+++ b/pkg/polymer_expressions/lib/tokenizer.dart
@@ -13,6 +13,7 @@ const int _SPACE = 32;
const int _BANG = 33;
const int _DQ = 34;
const int _$ = 36;
+const int _PERCENT = 37;
const int _AMPERSAND = 38;
const int _SQ = 39;
const int _OPEN_PAREN = 40;
@@ -50,7 +51,7 @@ const int _CLOSE_CURLY_BRACKET = 125;
const int _NBSP = 160;
const _OPERATORS = const [_PLUS, _MINUS, _STAR, _SLASH, _BANG, _AMPERSAND,
- /*_COMMA,*/ _LT, _EQ, _GT, _QUESTION, _CARET, _BAR];
+ _PERCENT, _LT, _EQ, _GT, _QUESTION, _CARET, _BAR];
const _GROUPERS = const [_OPEN_PAREN, _CLOSE_PAREN,
_OPEN_SQUARE_BRACKET, _CLOSE_SQUARE_BRACKET,
« no previous file with comments | « no previous file | pkg/polymer_expressions/test/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698