Mercurial > hg > Members > nobuyasu > myCompiler
diff Bison-Flex/BasicCompiler-StackBase/UTF8/script-scanner.ll @ 3:3cea2e8a0e4b
add function goto
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 10 May 2011 10:48:02 +0900 |
parents | fbe42292d479 |
children |
line wrap: on
line diff
--- a/Bison-Flex/BasicCompiler-StackBase/UTF8/script-scanner.ll Tue May 10 06:43:55 2011 +0900 +++ b/Bison-Flex/BasicCompiler-StackBase/UTF8/script-scanner.ll Tue May 10 10:48:02 2011 +0900 @@ -62,10 +62,12 @@ "end" return token::TK_END; "rand" return token::TK_RAND; "print" return token::TK_PRINT; + ":" return token::TK_COLON; + "goto" return token::TK_GOTO; \\\n yylloc->lines(); - : return token::TK_NEWLINE; + \n { yylloc->lines(); return token::TK_NEWLINE; } [-+*/%=,()<>] return yy::script_parser::token_type(yytext[0]);