aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-06-03 15:13:39 +0000
committerMike Buland <eichlan@xagasoft.com>2011-06-03 15:13:39 +0000
commit782623371e37dc992d36a751c87253a45dfd0c1e (patch)
treea614d45890b054fb731eef519c385dad21748b2e
parent520dde8d2376f7f1825341d18c34837e23d39ff8 (diff)
downloadbuild-782623371e37dc992d36a751c87253a45dfd0c1e.tar.gz
build-782623371e37dc992d36a751c87253a45dfd0c1e.tar.bz2
build-782623371e37dc992d36a751c87253a45dfd0c1e.tar.xz
build-782623371e37dc992d36a751c87253a45dfd0c1e.zip
Well, that was strange. Support for the raw << operator was everywhere except
in the parser, even the lexer knew about it, it was a matter of adding a couple lines to the parser code.
-rw-r--r--src/build.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build.y b/src/build.y
index 4190dbc..0a9111c 100644
--- a/src/build.y
+++ b/src/build.y
@@ -295,6 +295,11 @@ expr: value
295 } expr { 295 } expr {
296 bld.xAst.addNode( @3, AstNode::typeOpPlusEq ); 296 bld.xAst.addNode( @3, AstNode::typeOpPlusEq );
297 } 297 }
298 | UNDEF OP_ADDSETR {
299 bld.xAst.addNode( @$, AstNode::typeVariableRef, $1 );
300 } expr {
301 bld.xAst.addNode( @3, AstNode::typeOpPlusEqRaw );
302 }
298 | expr OP_CMPEQUAL expr 303 | expr OP_CMPEQUAL expr
299 { 304 {
300 bld.xAst.addNode( @$, AstNode::typeCmpEq ); 305 bld.xAst.addNode( @$, AstNode::typeCmpEq );