├── .gitattributes ├── .gitignore ├── README.md ├── examples ├── design.curly ├── e.curly ├── eval.curly └── primes.curly ├── makefile ├── src ├── compiler │ ├── backends │ │ └── llvm │ │ │ ├── codegen.c │ │ │ ├── codegen.h │ │ │ ├── environment.c │ │ │ ├── environment.h │ │ │ ├── functions.c │ │ │ ├── functions.h │ │ │ ├── llvm_types.c │ │ │ └── llvm_types.h │ └── frontend │ │ ├── correctness │ │ ├── check.c │ │ ├── check.h │ │ ├── check_helper.h │ │ ├── scope.c │ │ ├── scope.h │ │ ├── type_generators.c │ │ ├── type_generators.h │ │ ├── types.c │ │ └── types.h │ │ ├── ir │ │ ├── generate_ir.c │ │ └── generate_ir.h │ │ └── parse │ │ ├── ast.c │ │ ├── ast.h │ │ ├── lexer.c │ │ ├── lexer.h │ │ ├── parser.c │ │ └── parser.h ├── main.c └── utils │ ├── hashes.c │ ├── hashes.h │ ├── hashmap.c │ ├── hashmap.h │ ├── list.c │ └── list.h └── tests ├── compile-tests ├── assign.curly ├── infix.curly └── with.curly ├── correctness-tests └── types.curly └── parsing-tests ├── for.curly ├── func-apply.curly ├── if.curly ├── test.curly ├── values.txt └── where.curly /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/README.md -------------------------------------------------------------------------------- /examples/design.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/examples/design.curly -------------------------------------------------------------------------------- /examples/e.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/examples/e.curly -------------------------------------------------------------------------------- /examples/eval.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/examples/eval.curly -------------------------------------------------------------------------------- /examples/primes.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/examples/primes.curly -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/makefile -------------------------------------------------------------------------------- /src/compiler/backends/llvm/codegen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/codegen.c -------------------------------------------------------------------------------- /src/compiler/backends/llvm/codegen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/codegen.h -------------------------------------------------------------------------------- /src/compiler/backends/llvm/environment.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/environment.c -------------------------------------------------------------------------------- /src/compiler/backends/llvm/environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/environment.h -------------------------------------------------------------------------------- /src/compiler/backends/llvm/functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/functions.c -------------------------------------------------------------------------------- /src/compiler/backends/llvm/functions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/functions.h -------------------------------------------------------------------------------- /src/compiler/backends/llvm/llvm_types.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/llvm_types.c -------------------------------------------------------------------------------- /src/compiler/backends/llvm/llvm_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/backends/llvm/llvm_types.h -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/check.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/check.c -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/check.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/check.h -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/check_helper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/check_helper.h -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/scope.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/scope.c -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/scope.h -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/type_generators.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/type_generators.c -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/type_generators.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/type_generators.h -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/types.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/types.c -------------------------------------------------------------------------------- /src/compiler/frontend/correctness/types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/correctness/types.h -------------------------------------------------------------------------------- /src/compiler/frontend/ir/generate_ir.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/ir/generate_ir.c -------------------------------------------------------------------------------- /src/compiler/frontend/ir/generate_ir.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/ir/generate_ir.h -------------------------------------------------------------------------------- /src/compiler/frontend/parse/ast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/parse/ast.c -------------------------------------------------------------------------------- /src/compiler/frontend/parse/ast.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/parse/ast.h -------------------------------------------------------------------------------- /src/compiler/frontend/parse/lexer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/parse/lexer.c -------------------------------------------------------------------------------- /src/compiler/frontend/parse/lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/parse/lexer.h -------------------------------------------------------------------------------- /src/compiler/frontend/parse/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/parse/parser.c -------------------------------------------------------------------------------- /src/compiler/frontend/parse/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/compiler/frontend/parse/parser.h -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/main.c -------------------------------------------------------------------------------- /src/utils/hashes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/utils/hashes.c -------------------------------------------------------------------------------- /src/utils/hashes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/utils/hashes.h -------------------------------------------------------------------------------- /src/utils/hashmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/utils/hashmap.c -------------------------------------------------------------------------------- /src/utils/hashmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/utils/hashmap.h -------------------------------------------------------------------------------- /src/utils/list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/utils/list.c -------------------------------------------------------------------------------- /src/utils/list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/src/utils/list.h -------------------------------------------------------------------------------- /tests/compile-tests/assign.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/compile-tests/assign.curly -------------------------------------------------------------------------------- /tests/compile-tests/infix.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/compile-tests/infix.curly -------------------------------------------------------------------------------- /tests/compile-tests/with.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/compile-tests/with.curly -------------------------------------------------------------------------------- /tests/correctness-tests/types.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/correctness-tests/types.curly -------------------------------------------------------------------------------- /tests/parsing-tests/for.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/parsing-tests/for.curly -------------------------------------------------------------------------------- /tests/parsing-tests/func-apply.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/parsing-tests/func-apply.curly -------------------------------------------------------------------------------- /tests/parsing-tests/if.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/parsing-tests/if.curly -------------------------------------------------------------------------------- /tests/parsing-tests/test.curly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/parsing-tests/test.curly -------------------------------------------------------------------------------- /tests/parsing-tests/values.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melody-notpond/curly-lang-legacy/HEAD/tests/parsing-tests/values.txt -------------------------------------------------------------------------------- /tests/parsing-tests/where.curly: -------------------------------------------------------------------------------- 1 | [ 2 | a in iter where 3 | a >= 2 4 | ] 5 | --------------------------------------------------------------------------------