diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compilers/_all.js | 2 | ||||
-rw-r--r-- | lib/compilers/carbon.js (renamed from lib/compilers/quetzal.js) | 6 | ||||
-rw-r--r-- | lib/languages.ts | 10 |
3 files changed, 10 insertions, 8 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; } } diff --git a/lib/languages.ts b/lib/languages.ts index eed359d9e..5922e96e2 100644 --- a/lib/languages.ts +++ b/lib/languages.ts @@ -93,12 +93,12 @@ const definitions: Record<LanguageKey, LanguageDefinition> = { formatter: 'clangformat', previewFilter: /^\s*#include/, }, - quetzal: { - name: 'quetzal', - monaco: 'quetzal', - extensions: ['.quetzal'], + carbon: { + name: 'carbon', + monaco: 'carbon', + extensions: ['.carbon'], alias: [], - logoUrl: 'quetzal.svg', + logoUrl: 'carbon.svg', logoUrlDark: null, formatter: null, previewFilter: null, |