summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-22 13:47:18 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-22 13:47:18 (EST)
commit8bf52cfc5499dbb1f6502495925cbc6c9b5a4274 (patch)
tree8053805c5b1bd5151cae066c992f2a73ffc846c9 /eshtrans
parentd533dc560cf422043069feeb741b6f85579748b6 (diff)
downloadeggshell-8bf52cfc5499dbb1f6502495925cbc6c9b5a4274.zip
eggshell-8bf52cfc5499dbb1f6502495925cbc6c9b5a4274.tar.gz
eggshell-8bf52cfc5499dbb1f6502495925cbc6c9b5a4274.tar.bz2
eshtrans: Add function start/end tokens
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/tokens.esh6
1 files changed, 6 insertions, 0 deletions
diff --git a/eshtrans/tokens.esh b/eshtrans/tokens.esh
index 9f68ca6..a4dee4f 100644
--- a/eshtrans/tokens.esh
+++ b/eshtrans/tokens.esh
@@ -73,6 +73,9 @@ tokname()
T_IO_NUMBER) n='I/O number';;
T_WORD) n='word';;
T_ASSIGNMENT_WORD) n='assignment word';;
+ # Internal symbols
+ T_FN_START) n='function start';;
+ T_FN_END) n='function end';;
# Unknown
*) n='unknown token';;
esac
@@ -135,6 +138,9 @@ toktext()
T_IO_NUMBER) n="${t#*${US}}";;
T_WORD) n="${t#*${US}}";;
T_ASSIGNMENT_WORD) n="${t#*${US}}";;
+ # Internal symbols
+ T_FN_START) n='';;
+ T_FN_END) n='';;
# Unknown
*) n='';;
esac