From 52a6f8656e8a600a2c59fa2802fb46fafb30de45 Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Mon, 12 May 2025 01:51:27 +0200 Subject: Object-like macros --- tokenizer.sig | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tokenizer.sig') diff --git a/tokenizer.sig b/tokenizer.sig index d34f934..7ea6f63 100644 --- a/tokenizer.sig +++ b/tokenizer.sig @@ -13,6 +13,8 @@ signature TOKENIZER = sig Invalid | EOS | NewLine | + MacroStart of string | + MacroEnd | Num of numConst | @@ -122,17 +124,14 @@ signature TOKENIZER = sig CppError | CppPragma - type fullToken = S.pos * token - (* Fatal. both may be thrown by tokenize *) exception FsmTableIsTooSmall - exception TkErrorAug of S.ppos * string + exception TkErrorAug of S.pos * string - val getToken: S.t -> fullToken option * S.t + val getToken: S.t -> token * S.pos * S.t - val tokenize: S.t -> fullToken list val token2str: token -> string val printToken: token -> unit - val debugPrint: fullToken list -> string -> unit + val debugPrint: (token * S.pos) list -> string -> unit end -- cgit v1.2.3