5ANN
enum yytokentype
op1(
const m_str
str) {
59ANN
enum yytokentype
op2(
const m_str
str) {
61 if (
str[0] ==
'+')
return PLUSPLUS;
62 if (
str[0] ==
'-')
return MINUSMINUS;
63 if (
str[0] ==
'=')
return EQ;
64 if (
str[0] ==
'&')
return AND;
65 if (
str[0] ==
'|')
return OR;
66 if (
str[0] ==
'<')
return SHIFT_LEFT;
67 if (
str[0] ==
'>')
return SHIFT_RIGHT;
70 if (
str[1] ==
'=')
return LE;
74 if (
str[1] ==
'=')
return GE;
77 if (
str[0] ==
'!' &&
str[1] ==
'=')
return NEQ;
78 if (
str[0] ==
'?' &&
str[1] ==
':')
return QUESTIONCOLON;
79 if (
str[0] ==
':' &&
str[1] ==
':')
return COLONCOLON;
84 return str[0] == c &&
str[1] == c &&
str[2] == c;
87ANN
enum yytokentype
op3(
const m_str
str) {
ANN enum yytokentype op2(const m_str str)
ANN enum yytokentype op1(const m_str str)
static bool match(m_str str, char c)
ANN enum yytokentype op3(const m_str str)
include this file to use gwion-ast library