@@ -50,9 +50,13 @@ Options Options::parseOptions(int argc, char** argv)
}
else {
+ if (options.outfile == "")
+ options.outfile = arg + ".o";
options.infiles.push_back(std::move(arg));
+ options.outfile = "a.out";
return options;
@@ -191,6 +191,9 @@ topLevel:
$2 = nullptr;
|
+ topLevel externMethodDefinition {
+ }
+ |
topLevel error methodDefinition {
reportError(qlow::SyntaxError(@2));
yyerrok;