DescriptionImpliment MDV Syntax expressions
Hey,
This patch implements all the expression support we discussed with the exception of function invocation. This includes:
Unary +, -
Binary +, -, *, /, %
Relational <, >, <=, >=
Equality ==, !=, ===, !==
Logical &&, ||
Logical !
Conditional (e.g. foo ? bat : bar)
Literals (e.g. 1, 'foo', null)
Note that this takes a dependency on esprima which is BSD licensed.
R=arv
BUG=
Committed: https://github.com/Polymer/mdv/commit/63e8fad
Patch Set 1 #Patch Set 2 : inline inclusion of subset of esprima library #Patch Set 3 : removed support for non-ascii identifier characters #Patch Set 4 : parsing directly to mdv_syntax, rather than going through AST structure #Patch Set 5 : support for expressions in class syntax, named scopes and general cleanup #Patch Set 6 : fix breakage #Patch Set 7 : moar clenaup #
Total comments: 10
MessagesTotal messages: 3
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||