diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-07-25 15:05:34 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-07-25 15:05:34 +0000 |
commit | 991a130b1e71b3b849b3640264f8834d6e13da22 (patch) | |
tree | 1e99a52b73043814fa501c8d470a933d2bc7cded /src/libexpr/lexer.l | |
parent | e6899794ae9ce3924b818721d5caff463bccd60c (diff) |
* Added a list concatenation operator:
[1 2 3] ++ [4 5 6] => [1 2 3 4 5 6]
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 38d403c9f..d5a14f517 100644 --- a/src/libexpr/lexer.l +++ b/src/libexpr/lexer.l @@ -59,6 +59,7 @@ inherit { return INHERIT; } \|\| { return OR; } \-\> { return IMPL; } \/\/ { return UPDATE; } +\+\+ { return CONCAT; } {ID} { yylval->t = ATmake("<str>", yytext); return ID; /* !!! alloc */ } {INT} { int n = atoi(yytext); /* !!! overflow */ |