lkml.org 
[lkml]   [2020]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2020-02-22 01:24    [W:0.084 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site