GitHub Viewer
%require "3.0"
%define api.pure
%define api.value.type {LCompilers::LPython::YYSTYPE}
%param {LCompilers::LPython::Parser &p}
%locations
%expect 0 // shift/reduce conflicts
// Uncomment this to get verbose error messages
//%define parse.error verbose
/*
// Uncomment this to enable parser tracing. Then in the main code, set
// extern int yydebug;
// yydebug=1;
%define parse.trace
%printer { fprintf(yyo, "%s", $$.str().c_str()); }
%printer { fprintf(yyo, "%d", $$); }
%printer { std::cerr