diff --git a/spec/fixtures/inlining/basic.y b/spec/fixtures/inlining/basic.y new file mode 100644 index 00000000..f9e9fe87 --- /dev/null +++ b/spec/fixtures/inlining/basic.y @@ -0,0 +1,42 @@ +/* + * This is comment for this file. + */ + +%{ +// Prologue +static int yylex(YYSTYPE *val, YYLTYPE *loc); +static int yyerror(YYLTYPE *loc, const char *str); +%} + +%union { + int i; +} + +%token number + +%inline op: '+' { (+) } + | '-' { (-) } + | '*' { (*) } + | '/' { (/) } + +%% + +expression : number + : expression op expression { $$ = $1 $2 $3; } + ; + +%% + +static int yylex(YYSTYPE *yylval, YYLTYPE *loc) { +{ + return 0; +} + +static int yyerror(YYLTYPE *loc, const char *str) { +{ + return 0; +} + +int main(int argc, char *argv[]) +{ +}