rename val to hylo

This commit is contained in:
nickpdemarco
2023-10-11 15:01:45 -04:00
parent 9cda199e40
commit 4ee6cda52f
10 changed files with 26 additions and 25 deletions

View File

@@ -0,0 +1,4 @@
compilers=/Users/demarco/dev/hylo/hylo-fork/.build/release/hc
supportsBinary=true
compilerType=hylo
objdumper=objdump

View File

@@ -1,4 +0,0 @@
compilers=/Users/demarco/dev/val/val/.build/release/valc
supportsBinary=true
compilerType=val
objdumper=objdump

View File

@@ -4,4 +4,4 @@ public fun factorial(_ n: Int) -> Int {
public fun main() -> Int32 { public fun main() -> Int32 {
Int32(factorial(5)) Int32(factorial(5))
} }

View File

@@ -68,6 +68,7 @@ export {GolangCompiler} from './golang.js';
export {HaskellCompiler} from './haskell.js'; export {HaskellCompiler} from './haskell.js';
export {HLSLCompiler} from './hlsl.js'; export {HLSLCompiler} from './hlsl.js';
export {HookCompiler} from './hook.js'; export {HookCompiler} from './hook.js';
export {HyloCompiler} from './hylo.js';
export {ISPCCompiler} from './ispc.js'; export {ISPCCompiler} from './ispc.js';
export {JaktCompiler} from './jakt.js'; export {JaktCompiler} from './jakt.js';
export {JavaCompiler} from './java.js'; export {JavaCompiler} from './java.js';
@@ -122,7 +123,6 @@ export {Win32MingWGcc} from './win32-mingw-gcc.js';
export {Win32MingWClang} from './win32-mingw-clang.js'; export {Win32MingWClang} from './win32-mingw-clang.js';
export {WineVcCompiler} from './wine-vc.js'; export {WineVcCompiler} from './wine-vc.js';
export {WslVcCompiler} from './wsl-vc.js'; export {WslVcCompiler} from './wsl-vc.js';
export {ValCompiler} from './val.js';
export {ZigCC} from './zigcc.js'; export {ZigCC} from './zigcc.js';
export {ZigCompiler} from './zig.js'; export {ZigCompiler} from './zig.js';
export {ZigCXX} from './zigcxx.js'; export {ZigCXX} from './zigcxx.js';

View File

@@ -9,9 +9,9 @@ import type {ParseFiltersAndOutputOptions} from '../../types/features/filters.in
// - execute the compiler.exe with the arguments from OptionsForFilter() and adding inputFilename // - execute the compiler.exe with the arguments from OptionsForFilter() and adding inputFilename
// - be aware that the language class is only instanced once, so storing state is not possible // - be aware that the language class is only instanced once, so storing state is not possible
export class ValCompiler extends BaseCompiler { export class HyloCompiler extends BaseCompiler {
static get key() { static get key() {
return 'val'; return 'hylo';
} }
override optionsForFilter( override optionsForFilter(

View File

@@ -384,6 +384,17 @@ const definitions: Record<LanguageKey, LanguageDefinition> = {
previewFilter: null, previewFilter: null,
monacoDisassembly: null, monacoDisassembly: null,
}, },
hylo: {
name: 'Hylo',
monaco: 'hylo',
extensions: ['.hylo'],
alias: [],
logoUrl: 'hylo.svg',
logoUrlDark: null,
formatter: null,
previewFilter: null,
monacoDisassembly: null,
},
ispc: { ispc: {
name: 'ispc', name: 'ispc',
monaco: 'ispc', monaco: 'ispc',
@@ -659,17 +670,6 @@ const definitions: Record<LanguageKey, LanguageDefinition> = {
previewFilter: null, previewFilter: null,
monacoDisassembly: 'nc', monacoDisassembly: 'nc',
}, },
val: {
name: 'Val',
monaco: 'val',
extensions: ['.val'],
alias: [],
logoUrl: 'val.svg',
logoUrlDark: null,
formatter: null,
previewFilter: null,
monacoDisassembly: null,
},
vala: { vala: {
name: 'Vala', name: 'Vala',
monaco: 'vala', monaco: 'vala',

View File

@@ -47,6 +47,7 @@ import './gccdump-rtl-gimple-mode';
import './haskell-mode'; import './haskell-mode';
import './hlsl-mode'; import './hlsl-mode';
import './hook-mode'; import './hook-mode';
import './hylo-mode';
import './ispc-mode'; import './ispc-mode';
import './jakt-mode'; import './jakt-mode';
import './llvm-ir-mode'; import './llvm-ir-mode';
@@ -59,6 +60,5 @@ import './openclc-mode';
import './ptx-mode'; import './ptx-mode';
import './spirv-mode'; import './spirv-mode';
import './v-mode'; import './v-mode';
import './val-mode';
import './vala-mode'; import './vala-mode';
import './zig-mode'; import './zig-mode';

View File

@@ -22,8 +22,6 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE. // POSSIBILITY OF SUCH DAMAGE.
import $ from 'jquery';
import * as monaco from 'monaco-editor'; import * as monaco from 'monaco-editor';
function definition(): monaco.languages.IMonarchLanguage { function definition(): monaco.languages.IMonarchLanguage {
@@ -231,7 +229,7 @@ function definition(): monaco.languages.IMonarchLanguage {
}; };
} }
monaco.languages.register({id: 'val'}); monaco.languages.register({id: 'hylo'});
monaco.languages.setMonarchTokensProvider('val', definition()); monaco.languages.setMonarchTokensProvider('hylo', definition());
export {}; export {};

View File

@@ -53,6 +53,7 @@ export type LanguageKey =
| 'haskell' | 'haskell'
| 'hlsl' | 'hlsl'
| 'hook' | 'hook'
| 'hylo'
| 'ispc' | 'ispc'
| 'jakt' | 'jakt'
| 'java' | 'java'
@@ -80,7 +81,6 @@ export type LanguageKey =
| 'toit' | 'toit'
| 'typescript' | 'typescript'
| 'v' | 'v'
| 'val'
| 'vala' | 'vala'
| 'vb' | 'vb'
| 'zig'; | 'zig';

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 320 KiB