diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-04T16·49+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-04T16·49+0000 |
commit | 9d25466b34a5f7c1c8b1c273976cf59c33961a6c (patch) | |
tree | ee4a5a60ae5de90fb301d75258ea627300065b2a /src/libexpr/lexer.l | |
parent | 6d46e647ba16e19100dcd0abda9ca5a81ccf764f (diff) |
* An attribute set update operator (//). E.g.,
{x=1; y=2; z=3;} // {y=4;} => {x=1; y=4; z=3;}
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r-- | src/libexpr/lexer.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l index 853362cd0bbb..ce1c4673d7a6 100644 --- a/src/libexpr/lexer.l +++ b/src/libexpr/lexer.l @@ -57,6 +57,7 @@ inherit { return INHERIT; } \&\& { return AND; } \|\| { return OR; } \-\> { return IMPL; } +\/\/ { return UPDATE; } {ID} { yylval->t = ATmake("<str>", yytext); return ID; /* !!! alloc */ } {INT} { int n = atoi(yytext); /* !!! overflow */ |