diff options
author | P. 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) |
commit | 3fabff2df0215812a042ee70b4708b63be8a4fd0 (patch) | |
tree | b12b1a77504c329ca628a407e64596edd2f0e306 /eshtrans/frontend/main.esh | |
parent | a7ff3833eb46366370377e93337847c5d3d06af1 (diff) | |
download | eggshell-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.esh | 5 |
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 |