Messages in this thread | | | Date | Fri, 21 Feb 2020 16:23:12 -0800 | From | Andi Kleen <> | Subject | Re: [PATCH 2/4] perf expr: Move expr lexer to flex |
| |
> +max { return MAX; } > +min { return MIN; } > +if { return IF; } > +else { return ELSE; } > +#smt_on { return SMT_ON; } > +{number} { return value(yyscanner, 10); } > +{symbol} { return str(yyscanner, ID); } > +"|" { return '|'; } > +"^" { return '^'; } > +"&" { return '&'; } > +"-" { return '-'; } > +"+" { return '+'; } > +"*" { return '*'; } > +"/" { return '/'; } > +"%" { return '%'; } > +"(" { return '('; } > +")" { return ')'; } > +"," { return ','; }
Didn't think there was a comma, but ok.
Looks reasonable to me.
-Andi
| |