summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-10 23:32:45 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-10 23:32:45 -0700
commit77ab32804f07545e7a3fcc2b40b5b7b5565091e8 (patch)
tree34af544662a06044c57c23a43621973d4cd81c1f
parente046fecd8e0736fffc4fd08789a3319af6e544fd (diff)
downloadmbld-77ab32804f07545e7a3fcc2b40b5b7b5565091e8.tar.gz
Move parser type into parse.myr
It's not used anywhere else.
-rw-r--r--parse.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse.myr b/parse.myr
index 74eb274..95e927e 100644
--- a/parse.myr
+++ b/parse.myr
@@ -9,6 +9,14 @@ pkg bld =
const load : (b : build#, path : byte[:] -> bool)
;;
+type parser = struct
+ /* parse input */
+ data : byte[:]
+ rest : byte[:]
+ fname : byte[:]
+ line : int
+;;
+
const load = {b, path
var p : parser#