summaryrefslogtreecommitdiff
path: root/symtab.sig
diff options
context:
space:
mode:
authorVladimir Azarov <avm@intermediate-node.net>2025-05-26 14:42:35 +0200
committerVladimir Azarov <avm@intermediate-node.net>2025-05-26 14:42:35 +0200
commit6f3fa80b37ca5f8d992f5d6f66aee77ead303bf4 (patch)
tree1d3099280e63fac03d906b24bc6b877840348eab /symtab.sig
parentc6b6203f8420f76a47433717eab8026d524ec5c1 (diff)
Symbol table
Diffstat (limited to 'symtab.sig')
-rw-r--r--symtab.sig16
1 files changed, 16 insertions, 0 deletions
diff --git a/symtab.sig b/symtab.sig
new file mode 100644
index 0000000..61ed1cb
--- /dev/null
+++ b/symtab.sig
@@ -0,0 +1,16 @@
+signature SYMTAB = sig
+
+ type 'token t
+
+ val init: unit -> 'token t
+
+ type 'token auxInfo = 'token option * 'token option
+ val insert: 'token t -> string -> ('token auxInfo -> 'token auxInfo)
+ -> int
+ val getId: 'token t -> string -> int
+ val getStr: 'token t -> int -> string
+ val isPpcDir: 'token t -> int -> 'token option
+ val isKw: 'token t -> int -> 'token option
+
+ val print: 'token t -> unit
+end