summaryrefslogtreecommitdiffstats
path: root/eshtrans/frontend/parser.esh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-28 23:28:01 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-28 23:28:01 (EST)
commit1778852e86d710c5d28d46031b59e186a429dd38 (patch)
tree9d0610d266a1c6e3deb56b3948863972a90fba2f /eshtrans/frontend/parser.esh
parent222ad7c5b260afb6394e39c2bdbd69a92cf4a7d5 (diff)
downloadeggshell-1778852e86d710c5d28d46031b59e186a429dd38.zip
eggshell-1778852e86d710c5d28d46031b59e186a429dd38.tar.gz
eggshell-1778852e86d710c5d28d46031b59e186a429dd38.tar.bz2
eshtrans: Support parameter lists
Diffstat (limited to 'eshtrans/frontend/parser.esh')
-rw-r--r--eshtrans/frontend/parser.esh7
1 files changed, 7 insertions, 0 deletions
diff --git a/eshtrans/frontend/parser.esh b/eshtrans/frontend/parser.esh
index 7966fb6..2607d96 100644
--- a/eshtrans/frontend/parser.esh
+++ b/eshtrans/frontend/parser.esh
@@ -421,6 +421,13 @@ simple_command()
return 0
elif accept T_FNAME; then
if accept T_LPAREN; then
+ if accept T_TYPE; then
+ expect T_NAME
+ while accept T_COMMA; do
+ expect T_TYPE
+ expect T_NAME
+ done
+ fi
expect T_RPAREN
if linebreak && function_body; then
#ptrace_pass simple_command