Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if ($LASTEXITCODE) { throw "Error" }
./target/release/ty obj test/main.ty
if ($LASTEXITCODE) { throw "Error" }
./target/release/ty link main -o .ty-cache/main.o
./target/release/ty link main -o .ty/main.o
if ($LASTEXITCODE) { throw "Error" }
./target/main
if ($LASTEXITCODE) { throw "Error" }
Expand All @@ -42,7 +42,7 @@ jobs:
cargo test
./target/release/e2e
./target/release/ty obj test/main.ty
./target/release/ty link main -o .ty-cache/main.o
./target/release/ty link main -o .ty/main.o
./target/main

build-macos:
Expand All @@ -57,5 +57,5 @@ jobs:
cargo test
./target/release/e2e
./target/release/ty obj test/main.ty
./target/release/ty link main -o .ty-cache/main.o
./target/release/ty link main -o .ty/main.o
./target/main
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
callgrind*

# type lang
.ty-cache
.ty
#windows installer
.vs
# Generated by Cargo
Expand All @@ -18,4 +18,4 @@ Cargo.lock

# Added by cargo

/target
target
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# type-lang

Type-lang or __ty__. Is a rust/zig/typescript inspired language. There is one main goal of __ty__ and that is to become the best high level language without a Garbage Collector. Every decision for syntax, language features, and implementation will point back to that main goal.
Type-lang or **ty**. Is a rust/zig/typescript inspired language. There is one main goal of **ty** and that is to become the best high level language without a Garbage Collector. Every decision for syntax, language features, and implementation will point back to that main goal.

#### Build from source

Ty requires a relatively recent version of cargo.

```
Expand Down Expand Up @@ -32,17 +33,16 @@ You can view the location of the current main test file here.
[main.ty](./test/main.ty)
That file will have almost every feature once it is supported, so check the file, for possibilities


Future versions of ty will have a much more robust easy to use build system.
For now, compiling a program requires these steps, first generate the object files

`ty obj main.ty,other.ty`

this puts the object files in a directory `.ty-cache`
this puts the object files in a directory `.ty`

then link to a final executable.

`ty link my-cli -o .ty-cache/main.o,.ty-cache/other.o`
`ty link my-cli -o .ty/main.o,.ty/other.o`

you can then execute your new binary.

Expand Down
6 changes: 3 additions & 3 deletions e2e/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ fn main() {
}",
Path::new("main.ty"),
);
let input = Path::new(".ty-cache/main.o").to_path_buf();
let output = Path::new(".ty-cache/main").to_path_buf();
let input = Path::new(".ty/main.o").to_path_buf();
let output = Path::new(".ty/main").to_path_buf();
link(vec![&input], &output);
let output = Command::new(".ty-cache/main")
let output = Command::new(".ty/main")
.args(&[""])
.spawn()
.expect("main to run")
Expand Down
3 changes: 1 addition & 2 deletions installers/windows/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Release
Debug
Output
674 changes: 674 additions & 0 deletions installers/windows/LICENSE

Large diffs are not rendered by default.

204 changes: 0 additions & 204 deletions installers/windows/TypeLangSolution/MergeModule1/MergeModule1.vdproj

This file was deleted.

Loading
Loading