aboutsummaryrefslogtreecommitdiff
path: root/src/build.y
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/build.y12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/build.y b/src/build.y
index a6618e4..3e9c8fd 100644
--- a/src/build.y
+++ b/src/build.y
@@ -188,7 +188,7 @@ value_mods:
188 188
189value_core: variable 189value_core: variable
190 | literal 190 | literal
191 | function 191 | function_no_input
192 | list 192 | list
193 ; 193 ;
194 194
@@ -254,6 +254,16 @@ function: UNDEF '(' {
254 } 254 }
255 ; 255 ;
256 256
257function_no_input: UNDEF '(' {
258 bld.xAst.addNode( AstNode::typeNull );
259 bld.xAst.addNode( AstNode::typeFunction );
260 bld.xAst.openBranch();
261 bld.xAst.addNode( AstNode::typeString, $1 );
262 } func_params ')' {
263 bld.xAst.closeNode();
264 }
265 ;
266
257requires: TOK_REQUIRES { 267requires: TOK_REQUIRES {
258 bld.xAst.addNode( AstNode::typeRequires ); 268 bld.xAst.addNode( AstNode::typeRequires );
259 bld.xAst.openBranch(); 269 bld.xAst.openBranch();