From db3e644c1ce7d856dbaca7718fa0af8231c486d2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 28 Mar 2004 20:34:22 +0000 Subject: * Added plain lambdas, e.g., `let { id = x: x; const = x: y: x; }'. `bla:' is now no longer parsed as a URL. * Re-enabled support for the `args' attribute in derivations to specify command line arguments to the builder, e.g., ... builder = /usr/bin/python; args = ["-c" ./builder.py]; ... --- src/libexpr/parser.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libexpr/parser.y') diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index bfd539a3f094..44d1e06abefa 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -54,6 +54,8 @@ expr: expr_function; expr_function : '{' formals '}' ':' expr_function { $$ = ATmake("Function(, )", $2, $5); } + | ID ':' expr_function + { $$ = ATmake("Function1(, )", $1, $3); } | expr_assert ; -- cgit 1.4.1