mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-09 21:13:54 +01:00
.
This commit is contained in:
parent
d8b2033867
commit
f0314817a2
0
.github/workflows/rust.yml
vendored
Normal file → Executable file
0
.github/workflows/rust.yml
vendored
Normal file → Executable file
0
docs/builtins.md
Normal file → Executable file
0
docs/builtins.md
Normal file → Executable file
0
docs/intro.md
Normal file → Executable file
0
docs/intro.md
Normal file → Executable file
0
docs/statements.md
Normal file → Executable file
0
docs/statements.md
Normal file → Executable file
0
docs/syntax_cheat_sheet.md
Normal file → Executable file
0
docs/syntax_cheat_sheet.md
Normal file → Executable file
0
examples/advent_of_code/2022/day3a.mers
Normal file → Executable file
0
examples/advent_of_code/2022/day3a.mers
Normal file → Executable file
0
examples/advent_of_code/2022/day3b.mers
Normal file → Executable file
0
examples/advent_of_code/2022/day3b.mers
Normal file → Executable file
0
examples/advent_of_code/2022/day4a.mers
Normal file → Executable file
0
examples/advent_of_code/2022/day4a.mers
Normal file → Executable file
0
examples/advent_of_code/2022/day4b.mers
Normal file → Executable file
0
examples/advent_of_code/2022/day4b.mers
Normal file → Executable file
0
examples/amogus.mers
Normal file → Executable file
0
examples/amogus.mers
Normal file → Executable file
0
examples/custom_type.mers
Normal file → Executable file
0
examples/custom_type.mers
Normal file → Executable file
0
examples/destructuring_assignment.mers
Normal file → Executable file
0
examples/destructuring_assignment.mers
Normal file → Executable file
0
examples/force_output_type.mers
Normal file → Executable file
0
examples/force_output_type.mers
Normal file → Executable file
0
examples/functions_double_definitions.mers
Normal file → Executable file
0
examples/functions_double_definitions.mers
Normal file → Executable file
0
examples/get_ref.mers
Normal file → Executable file
0
examples/get_ref.mers
Normal file → Executable file
0
examples/iterators.mers
Normal file → Executable file
0
examples/iterators.mers
Normal file → Executable file
0
examples/macro.mers
Normal file → Executable file
0
examples/macro.mers
Normal file → Executable file
0
examples/modify_variable.mers
Normal file → Executable file
0
examples/modify_variable.mers
Normal file → Executable file
0
examples/my_macro.mers
Normal file → Executable file
0
examples/my_macro.mers
Normal file → Executable file
0
examples/struct_fields.mers
Normal file → Executable file
0
examples/struct_fields.mers
Normal file → Executable file
0
examples/switch_match.mers
Normal file → Executable file
0
examples/switch_match.mers
Normal file → Executable file
0
examples/the_any_type.mers
Normal file → Executable file
0
examples/the_any_type.mers
Normal file → Executable file
0
examples/thread.mers
Normal file → Executable file
0
examples/thread.mers
Normal file → Executable file
0
external.css
Normal file → Executable file
0
external.css
Normal file → Executable file
0
index.html
Normal file → Executable file
0
index.html
Normal file → Executable file
0
mers/src/lang/fmtgs.rs
Normal file → Executable file
0
mers/src/lang/fmtgs.rs
Normal file → Executable file
@ -113,6 +113,22 @@ impl GlobalScriptInfo {
|
||||
.map(|(i, v)| (v.to_string(), i))
|
||||
.collect()
|
||||
}
|
||||
pub fn set_main_fn_args(&mut self, args: Vec<(String, VType)>) {
|
||||
self.main_fn_args = args;
|
||||
}
|
||||
#[allow(unused)]
|
||||
pub fn add_enum_variant(&mut self, name: String) -> usize {
|
||||
let id = self.enum_variants.len();
|
||||
self.enum_variants.insert(name, id);
|
||||
id
|
||||
}
|
||||
#[allow(unused)]
|
||||
pub fn add_custom_type(&mut self, name: String, t: VType) -> usize {
|
||||
let id = self.custom_types.len();
|
||||
self.custom_types.push(t);
|
||||
self.custom_type_names.insert(name, id);
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
0
mers/src/lang/mod.rs
Normal file → Executable file
0
mers/src/lang/mod.rs
Normal file → Executable file
0
mers/src/libs/comms.rs
Normal file → Executable file
0
mers/src/libs/comms.rs
Normal file → Executable file
0
mers/tests/destructuring_assignment.mers
Normal file → Executable file
0
mers/tests/destructuring_assignment.mers
Normal file → Executable file
0
mers/tests/force_output_type.mers
Normal file → Executable file
0
mers/tests/force_output_type.mers
Normal file → Executable file
0
mers/tests/functions_double_definitions.mers
Normal file → Executable file
0
mers/tests/functions_double_definitions.mers
Normal file → Executable file
0
mers/tests/get_ref.mers
Normal file → Executable file
0
mers/tests/get_ref.mers
Normal file → Executable file
0
mers/tests/lib_comms.rs
Normal file → Executable file
0
mers/tests/lib_comms.rs
Normal file → Executable file
0
mers/tests/macro.mers
Normal file → Executable file
0
mers/tests/macro.mers
Normal file → Executable file
0
mers/tests/modify_variable.mers
Normal file → Executable file
0
mers/tests/modify_variable.mers
Normal file → Executable file
0
mers/tests/my_macro.mers
Normal file → Executable file
0
mers/tests/my_macro.mers
Normal file → Executable file
0
mers/tests/return_true.mers
Normal file → Executable file
0
mers/tests/return_true.mers
Normal file → Executable file
0
mers/tests/test_in_mers.rs
Normal file → Executable file
0
mers/tests/test_in_mers.rs
Normal file → Executable file
0
mers/tests/thread_NOCHECK_ONLY_COMPILE.mers
Normal file → Executable file
0
mers/tests/thread_NOCHECK_ONLY_COMPILE.mers
Normal file → Executable file
0
site/index.html
Normal file → Executable file
0
site/index.html
Normal file → Executable file
0
site/welcome.mers
Normal file → Executable file
0
site/welcome.mers
Normal file → Executable file
Loading…
Reference in New Issue
Block a user