comparison 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
comparison
equal deleted inserted replaced
2:fbe42292d479 3:3cea2e8a0e4b
60 "while" return token::TK_WHILE; 60 "while" return token::TK_WHILE;
61 "wend" return token::TK_WEND; 61 "wend" return token::TK_WEND;
62 "end" return token::TK_END; 62 "end" return token::TK_END;
63 "rand" return token::TK_RAND; 63 "rand" return token::TK_RAND;
64 "print" return token::TK_PRINT; 64 "print" return token::TK_PRINT;
65 ":" return token::TK_COLON;
66 "goto" return token::TK_GOTO;
65 67
66 \\\n yylloc->lines(); 68 \\\n yylloc->lines();
67 69
68 : return token::TK_NEWLINE; 70
69 \n { yylloc->lines(); return token::TK_NEWLINE; } 71 \n { yylloc->lines(); return token::TK_NEWLINE; }
70 [-+*/%=,()<>] return yy::script_parser::token_type(yytext[0]); 72 [-+*/%=,()<>] return yy::script_parser::token_type(yytext[0]);
71 73
72 "==" return token::TK_EQ; 74 "==" return token::TK_EQ;
73 "!=" return token::TK_NE; 75 "!=" return token::TK_NE;