summaryrefslogtreecommitdiffstats
path: root/eshtrans/frontend/main.esh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-27 15:40:48 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-27 18:29:00 (EST)
commit3fabff2df0215812a042ee70b4708b63be8a4fd0 (patch)
treeb12b1a77504c329ca628a407e64596edd2f0e306 /eshtrans/frontend/main.esh
parenta7ff3833eb46366370377e93337847c5d3d06af1 (diff)
downloadeggshell-3fabff2df0215812a042ee70b4708b63be8a4fd0.zip
eggshell-3fabff2df0215812a042ee70b4708b63be8a4fd0.tar.gz
eggshell-3fabff2df0215812a042ee70b4708b63be8a4fd0.tar.bz2
[WIP] eshtrans/frontend: Split input into internal char array
Diffstat (limited to 'eshtrans/frontend/main.esh')
-rw-r--r--eshtrans/frontend/main.esh5
1 files changed, 3 insertions, 2 deletions
diff --git a/eshtrans/frontend/main.esh b/eshtrans/frontend/main.esh
index b9f93a6..fc25b5f 100644
--- a/eshtrans/frontend/main.esh
+++ b/eshtrans/frontend/main.esh
@@ -21,9 +21,10 @@
esh_parse()
{
local fn="${1}"
- shift 1
+ local buf="${2}"
+ shift 2
- if run_lexer "${fn}" complete_command; then
+ if run_lexer "${fn}" "${buf}" complete_command; then
return 0
fi
return 1