2 #include "Cycript.tab.h"
7 %option bison-locations
16 number [-]?{digit}*[.]?{digit}+
20 "&" { return CYTokenAmpersand; }
21 "&&" { return CYTokenAmpersandAmpersand; }
22 "&=" { return CYTokenAmpersandEqual; }
23 "^" { return CYTokenCarrot; }
24 "^=" { return CYTokenCarrotEqual; }
25 "=" { return CYTokenEqual; }
26 "==" { return CYTokenEqualEqual; }
27 "===" { return CYTokenEqualEqualEqual; }
28 "!" { return CYTokenExclamation; }
29 "!=" { return CYTokenExclamationEqual; }
30 "!==" { return CYTokenExclamationEqualEqual; }
31 "-" { return CYTokenHyphen; }
32 "-=" { return CYTokenHyphenEqual; }
33 "--" { return CYTokenHyphenHyphen; }
34 "->" { return CYTokenHyphenRight; }
35 "<" { return CYTokenLeft; }
36 "<=" { return CYTokenLeftEqual; }
37 "<<" { return CYTokenLeftLeft; }
38 "<<=" { return CYTokenLeftLeftEqual; }
39 "%" { return CYTokenPercent; }
40 "%=" { return CYTokenPercentEqual; }
41 "." { return CYTokenPeriod; }
42 "|" { return CYTokenPipe; }
43 "|=" { return CYTokenPipeEqual; }
44 "||" { return CYTokenPipePipe; }
45 "+" { return CYTokenPlus; }
46 "+=" { return CYTokenPlusEqual; }
47 "++" { return CYTokenPlusPlus; }
48 ">" { return CYTokenRight; }
49 ">=" { return CYTokenRightEqual; }
50 ">>" { return CYTokenRightRight; }
51 ">>=" { return CYTokenRightRightEqual; }
52 ">>>" { return CYTokenRightRightRight; }
53 ">>>=" { return CYTokenRightRightRightEqual; }
54 "/" { return CYTokenSlash; }
55 "/=" { return CYTokenSlashEqual; }
56 "*" { return CYTokenStar; }
57 "*=" { return CYTokenStarEqual; }
58 "~" { return CYTokenTilde; }
60 "break" { return CYTokenBreak; }
61 "case" { return CYTokenCase; }
62 "catch" { return CYTokenCatch; }
63 "continue" { return CYTokenContinue; }
64 "default" { return CYTokenDefault; }
65 "delete" { return CYTokenDelete; }
66 "do" { return CYTokenDo; }
67 "else" { return CYTokenElse; }
68 "false" { return CYTokenFalse; }
69 "finally" { return CYTokenFinally; }
70 "for" { return CYTokenFor; }
71 "function" { return CYTokenFunction; }
72 "if" { return CYTokenIf; }
73 "in" { return CYTokenIn; }
74 "instanceof" { return CYTokenInstanceOf; }
75 "new" { return CYTokenNew; }
76 "null" { return CYTokenNull; }
77 "return" { return CYTokenReturn; }
78 "switch" { return CYTokenSwitch; }
79 "this" { return CYTokenThis; }
80 "throw" { return CYTokenThrow; }
81 "true" { return CYTokenTrue; }
82 "try" { return CYTokenTry; }
83 "typeof" { return CYTokenTypeOf; }
84 "var" { return CYTokenVar; }
85 "void" { return CYTokenVoid; }
86 "while" { return CYTokenWhile; }
87 "with" { return CYTokenWith; }