From 1421ad6ee22c09103bba79ceea6860ecc2f80818 Mon Sep 17 00:00:00 2001 From: tfang Date: Tue, 26 May 2020 12:46:25 -0500 Subject: [PATCH] create lexer --- 1_lexer/main.mll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1_lexer/main.mll b/1_lexer/main.mll index 42d5667..095fa54 100755 --- a/1_lexer/main.mll +++ b/1_lexer/main.mll @@ -1,4 +1,4 @@ -{ +{ let line_number = ref 1 let commentFlag = ref 0 (*0 indicates outside comment section; 1 indicates inside comment section; 2 indicates single line comment*) type token = (*list token names*)