没有合适的资源?快使用搜索试试~ 我知道了~
A-Compiler:适用于我的编程语言的小型简单编译器
共90个文件
wew:42个
py:37个
org:3个
需积分: 9 0 下载量 153 浏览量
2021-05-16
07:12:34
上传
评论
收藏 78KB ZIP 举报
温馨提示
A编译器 var fns := {add_one, mul_two, square}; fn add_one(a: u8) -> u8 { std.printf("adding one: %u8\n", a); return a + 1; } fn mul_two(a: u8) -> u8 { std.printf("mul by two: %u8\n", a); return a * 2; } fn square(a: u8) -> u8 { std.printf("squaring: %u8\n", a); return a * a; } fn main() { var x := 0; var a: u8 = 4; while x < 3 { a = fns[x](a); x++;
资源推荐
资源详情
资源评论
收起资源包目录
A-Compiler-master.zip (90个子文件)
A-Compiler-master
LICENSE-MIT 1KB
MANIFEST.in 80B
.gitattributes 66B
compiler.uml 23KB
notes.org 299B
requirements.txt 50B
README.org 1KB
examples
example_force_spill.py 1KB
testprog8.wew 169B
testprog4.wew 263B
testprog5.wew 70B
test_compileerror.wew 208B
testprog11.wew 113B
testprog7.wew 92B
test_call_fuzz.wew 239B
error_tests
array_type_bad.wew 49B
array_no_size.wew 15B
void_type_use.wew 24B
array_len_constraint.wew 29B
func_bad_arg_num.wew 66B
function_arg_array.wew 18B
value_return_in_void.wew 26B
array_elem_cast.wew 24B
assign_to_consts.wew 46B
not_a_function.wew 14B
func_bad_arg_type.wew 57B
invalid_binary_type.wew 35B
void_return_in_non_void.wew 30B
incompatible_assign.wew 38B
unary_negate_unsigned.wew 34B
no_lvalue.wew 20B
test_if.wew 52B
example_test_arr.py 232B
does_dyndispatch_work.wew 496B
testprog2.wew 84B
printf_example.wew 177B
test_parseerror.wew 32B
testprog_multidim_arr.wew 86B
example_ir_view.py 536B
testprog.wew 46B
example_fuzz.wew 78B
inline_asm.wew 163B
example_global_vars.py 485B
testprog10.wew 111B
varargs.wew 131B
fibonacci.wew 138B
testprog6.wew 70B
testprog12.wew 168B
test_whatarr.wew 198B
testprog3.wew 101B
example_text.wew 65B
testprog9.wew 62B
setup.py 644B
Pipfile 207B
wewcompiler
utils
formatter.py 1KB
__init__.py 272B
emitterclass.py 2KB
backend
rustvm
stdlib.wew 3KB
register_allocate.py 8KB
assemble.py 14KB
__init__.py 4KB
desugar.py 5KB
encoder.py 8KB
__init__.py 0B
__init__.py 89B
objects
variable.py 788B
statements.py 7KB
base.py 20KB
builder.py 7KB
inlnasm.py 3KB
literals.py 13KB
errors.py 539B
ir_object.py 9KB
__init__.py 604B
types.py 6KB
operations.py 23KB
astnode.py 5KB
parser
lang.py 35KB
__init__.py 271B
lang.ebnf 4KB
generate_operators.py 1KB
everything.py 808B
tests
helpers.py 423B
test_parser.py 2KB
test_on_vm.py 15KB
__init__.py 0B
conftest.py 329B
test_compiler.py 16KB
.gitignore 154B
checklist.org 2KB
共 90 条
- 1
资源评论
哥本哈根学派
- 粉丝: 21
- 资源: 4508
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功