diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-22 17:34:51 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-22 17:34:51 +0300 |
commit | 546c03672b5b8044dbca0814eac8cbdddb898183 (patch) | |
tree | 8277c3ad7efe0b60ce64aa563b70e7999238a7c6 /tests | |
parent | 8d16cf26fc6e3a6c91eec21892d9da58286479f0 (diff) | |
download | eclat-546c03672b5b8044dbca0814eac8cbdddb898183.tar.gz eclat-546c03672b5b8044dbca0814eac8cbdddb898183.tar.bz2 |
Introduce forlan functions.
* lib/forlan.c (forlan_find_function): New function.
(func_dump, func_print)
(func_error,func_parent): Function placeholders.
* lib/forlan.h (forlan_node_func) <fp>: Change datatype.
(forlan_eval_env_t): New typedef.
(forlan_value_type): New enum.
(forlan_value,forlan_function): New struct.
* lib/forlangrm.y: Check number of arguments passed to functions.
* tests/forlan01.at: Update.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/forlan01.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/forlan01.at b/tests/forlan01.at index cf826e9..41c766d 100644 --- a/tests/forlan01.at +++ b/tests/forlan01.at @@ -25,7 +25,7 @@ if (.DescribeTagsResponse) { } else if (.Response.Errors) error(.Response.Errors.Error.Message); else - dump(); + dump(.); ]) AT_CHECK([tforlan -D input], @@ -70,6 +70,7 @@ AT_CHECK([tforlan -D input], 0038: LIT: "Message" 0039: IFFALSE 0027 0040: CALL: dump +0041: COMP ABS ]) AT_CLEANUP |