aboutsummaryrefslogtreecommitdiff
path: root/statefunc.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2021-03-06 22:30:32 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2021-03-06 22:30:32 +0300
commit93740d2d153b3da3a1be5707db1400106e3f6491 (patch)
treeddf705b638434710fa6304201f560f018f4864fe /statefunc.go
Initial
Diffstat (limited to 'statefunc.go')
-rw-r--r--statefunc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/statefunc.go b/statefunc.go
new file mode 100644
index 0000000..5980ecc
--- /dev/null
+++ b/statefunc.go
@@ -0,0 +1,4 @@
+package unilex
+
+// StateFunc represents function that scans lexems and returns new state function or nil if lexing completed.
+type StateFunc func(*Lexer) StateFunc