aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/_all.js2
-rw-r--r--lib/compilers/carbon.js (renamed from lib/compilers/quetzal.js)6
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/compilers/_all.js b/lib/compilers/_all.js
index 03541096c..8cf645a04 100644
--- a/lib/compilers/_all.js
+++ b/lib/compilers/_all.js
@@ -27,7 +27,7 @@ export {AnalysisTool} from './analysis-tool';
export {AssemblyCompiler} from './assembly';
export {BeebAsmCompiler} from './beebasm';
export {NasmCompiler} from './nasm';
-export {QuetzalCompiler} from './quetzal';
+export {CarbonCompiler} from './carbon';
export {Cc65Compiler} from './cc65';
export {CircleCompiler} from './circle';
export {ClangCompiler} from './clang';
diff --git a/lib/compilers/quetzal.js b/lib/compilers/carbon.js
index 0efba869a..ce436cd46 100644
--- a/lib/compilers/quetzal.js
+++ b/lib/compilers/carbon.js
@@ -25,9 +25,9 @@
import {BaseCompiler} from '../base-compiler';
import {BaseParser} from './argument-parsers';
-export class QuetzalCompiler extends BaseCompiler {
+export class CarbonCompiler extends BaseCompiler {
static get key() {
- return 'quetzal';
+ return 'carbon';
}
constructor(compilerInfo, env) {
@@ -70,6 +70,7 @@ export class QuetzalCompiler extends BaseCompiler {
customBuildPath,
);
if (result.code === 0) {
+ // Hook to parse out the "result: 123" line at the end of the interpreted execution run.
const re = /^result: (\d+)$/;
const match = re.exec(result.asm.at(-1).text);
const code = match ? parseInt(match[1]) : -1;
@@ -86,6 +87,7 @@ export class QuetzalCompiler extends BaseCompiler {
}
getArgumentParser() {
+ // TODO: may need a custom one, based on/borrowing from ClangParser
return BaseParser;
}
}