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

Unified Diff: mojo/public/bindings/pylib/parse/mojo_parser.py

Issue 213693004: Mojo: Mojom: Remove relational (e.g., !=) and logical operators (e.g., || and !). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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
Index: mojo/public/bindings/pylib/parse/mojo_parser.py
diff --git a/mojo/public/bindings/pylib/parse/mojo_parser.py b/mojo/public/bindings/pylib/parse/mojo_parser.py
index b6bcd3547d67a2e749b3045b7ca9f1806f81bf21..3cf080abd12296c7c8c03b951216a83c93c437fb 100755
--- a/mojo/public/bindings/pylib/parse/mojo_parser.py
+++ b/mojo/public/bindings/pylib/parse/mojo_parser.py
@@ -188,7 +188,7 @@ class Parser(object):
p[0] = p[1]
def p_specializedhandle(self, p):
- """specializedhandle : HANDLE LT specializedhandlename GT"""
+ """specializedhandle : HANDLE LANGLE specializedhandlename RANGLE"""
p[0] = "handle<" + p[3] + ">"
def p_specializedhandlename(self, p):
@@ -286,17 +286,9 @@ class Parser(object):
| MINUS
| RSHIFT
| LSHIFT
- | LT
- | LE
- | GE
- | GT
- | EQ
- | NE
| AND
| OR
- | XOR
- | LAND
- | LOR"""
+ | XOR"""
p[0] = p[1]
def p_unary_expression(self, p):
@@ -307,8 +299,7 @@ class Parser(object):
def p_unary_operator(self, p):
"""unary_operator : PLUS
| MINUS
- | NOT
- | LNOT"""
+ | NOT"""
p[0] = p[1]
def p_primary_expression(self, p):
« no previous file with comments | « mojo/public/bindings/pylib/parse/mojo_lexer.py ('k') | mojo/public/bindings/pylib/parse/mojo_parser_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698