Re: [PATCH 2/4] perf expr: Move expr lexer to flex

From: Andi Kleen
Date: Fri Feb 21 2020 - 19:23:15 EST


> +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