Sha256: 6b2eea1fa97131a4d5712e6bf18bd81b86ffdcd3ee8f45ef424444042a6a24bf
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
/* * This is comment for this file. */ %{ // Prologue static enum yytokentype yylex(YYSTYPE *lval, YYLTYPE *yylloc); static void yyerror(YYLTYPE *yylloc, const char *msg); %} %expect 0 %define api.pure %define parse.error verbose %union { int i; } %token <i> number %% program : expr ; expr : term '+' expr | term ; term : factor '*' term | factor ; factor : number ; %% // Epilogue static enum yytokentype yylex(YYSTYPE *lval, YYLTYPE *yylloc) { return 0; } static void yyerror(YYLTYPE *yylloc, const char *msg) { (void) msg; } int main(int argc, char *argv[]) { }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lrama-0.5.8 | sample/parse.y |
lrama-0.5.7 | sample/parse.y |