From 6f3fa80b37ca5f8d992f5d6f66aee77ead303bf4 Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Mon, 26 May 2025 14:42:35 +0200 Subject: Symbol table --- symtab.sig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 symtab.sig (limited to 'symtab.sig') 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 -- cgit v1.2.3