summaryrefslogtreecommitdiffstats
path: root/eshtrans/frontend/parser.esh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-28 15:08:23 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-28 15:08:23 (EST)
commit96716798e04aded65e9023c40fa8492350cf212d (patch)
treef21b801f771eecaeed0eabbf65dc02b191bbfeaf /eshtrans/frontend/parser.esh
parentc45f9970bf041823c2b9e2ad8ab49af90b28fe7d (diff)
downloadeggshell-96716798e04aded65e9023c40fa8492350cf212d.zip
eggshell-96716798e04aded65e9023c40fa8492350cf212d.tar.gz
eggshell-96716798e04aded65e9023c40fa8492350cf212d.tar.bz2
eshtrans: Add and parse T_USE
Diffstat (limited to 'eshtrans/frontend/parser.esh')
-rw-r--r--eshtrans/frontend/parser.esh5
1 files changed, 5 insertions, 0 deletions
diff --git a/eshtrans/frontend/parser.esh b/eshtrans/frontend/parser.esh
index 57c4b63..7966fb6 100644
--- a/eshtrans/frontend/parser.esh
+++ b/eshtrans/frontend/parser.esh
@@ -402,6 +402,11 @@ do_group()
simple_command()
{
#ptrace_begn simple_command
+ if accept T_USE; then
+ expect T_NAME
+ #ptrace_pass simple_command
+ return 0
+ fi
if accept T_LOCAL || accept T_RETURN; then
cmd_suffix
#ptrace_pass simple_command