Skip to content

Commit

Permalink
Update misc files
Browse files Browse the repository at this point in the history
  • Loading branch information
cecelot committed Feb 17, 2024
1 parent 99e23a6 commit f29b9ff
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Copyright 2023 alaidriel
Copyright 2023 alythical

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Other operating systems are currently unsupported.

## Documentation

There are preliminary docs [here](https://alaidriel.github.io/kyanite/), and some working samples in the `examples/` directory for both backends to demonstrate basic features.
There are preliminary docs [here](https://alythical.github.io/kyanite/), and some working samples in the `examples/` directory for both backends to demonstrate basic features.
32 changes: 16 additions & 16 deletions crates/kyac/snapshots/kyac__pass__typecheck__tests__records.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,88 +17,88 @@ expression: pass.errors
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "expected expression of type Person",
source: " alaina = 5;",
source: " p = 5;",
span: Span {
line: 25,
column: 14,
column: 9,
length: 1,
},
text: "expression of type int",
},
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "expected expression of type bool",
source: " alaina.foo.bar.baz = Bar:init(baz: false);",
source: " p.foo.bar.baz = Bar:init(baz: false);",
span: Span {
line: 28,
column: 26,
column: 21,
length: 3,
},
text: "expression of type Bar",
},
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "expected initializer to be of type int",
source: " let name: int = alaina.name;",
source: " let name: int = p.name;",
span: Span {
line: 30,
column: 21,
length: 11,
length: 6,
},
text: "expression of type str",
},
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "no field `faavorite` on type `Person`",
source: " let favorite: int = alaina.faavorite;",
source: " let favorite: int = p.faavorite;",
span: Span {
line: 31,
column: 32,
column: 27,
length: 9,
},
text: "",
},
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "no field `barr` on type `Foo`",
source: " let bar: Bar = alaina.foo.barr;",
source: " let bar: Bar = p.foo.barr;",
span: Span {
line: 33,
column: 31,
column: 26,
length: 4,
},
text: "",
},
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "no field `baaz` on type `Bar`",
source: " let baz: Baz = alaina.foo.bar.baaz;",
source: " let baz: Baz = p.foo.bar.baaz;",
span: Span {
line: 34,
column: 35,
column: 30,
length: 4,
},
text: "",
},
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "expected initializer to be of type Baz",
source: " let baz: Baz = alaina.foo.bar;",
source: " let baz: Baz = p.foo.bar;",
span: Span {
line: 37,
column: 20,
length: 14,
length: 9,
},
text: "expression of type Bar",
},
PreciseError {
filename: "test-cases/typecheck/records.kya",
heading: "expected initializer to be of type Baz",
source: " let baz: Baz = alaina.foo.bar.baz;",
source: " let baz: Baz = p.foo.bar.baz;",
span: Span {
line: 38,
column: 20,
length: 18,
length: 13,
},
text: "expression of type bool",
},
Expand Down
26 changes: 13 additions & 13 deletions crates/kyac/test-cases/typecheck/records.kya
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@ rec Bar {
}

fun main() {
let alaina: Person = Person:init(
name: "Alaina",
let p: Person = Person:init(
name: "Alice",
favorite: 7,
foo: Foo:init(
bar: Bar:init(baz: true)
),
hello: "world"
);

alaina = 5;
p = 5;

alaina.name = "Eloise";
alaina.foo.bar.baz = Bar:init(baz: false);
p.name = "someone else";
p.foo.bar.baz = Bar:init(baz: false);

let name: int = alaina.name;
let favorite: int = alaina.faavorite;
let name: int = p.name;
let favorite: int = p.faavorite;

let bar: Bar = alaina.foo.barr;
let baz: Baz = alaina.foo.bar.baaz;
let bar: Bar = p.foo.barr;
let baz: Baz = p.foo.bar.baaz;

let bar: Bar = alaina.foo.bar;
let baz: Baz = alaina.foo.bar;
let baz: Baz = alaina.foo.bar.baz;
let bar: Bar = p.foo.bar;
let baz: Baz = p.foo.bar;
let baz: Baz = p.foo.bar.baz;

foo.baz;
}
}
2 changes: 1 addition & 1 deletion docs/book.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[book]
authors = ["Alaina"]
authors = ["alythical"]
language = "en"
multilingual = false
src = "src"
Expand Down
4 changes: 2 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
personal.url = "github:alaidriel/nix-packages";
personal.url = "github:alythical/nix-packages";
};

outputs = {
Expand Down Expand Up @@ -79,7 +79,7 @@
CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER = "${pkgs.pkgsx86_64Darwin.llvmPackages.clangUseLLVM}/bin/cc";
meta = {
description = "A toy compiled programming language to learn more about PLs";
homepage = "https://github.com/alaidriel/kyanite";
homepage = "https://github.com/alythical/kyanite";
license = pkgs.lib.licenses.mit;
platforms = pkgs.lib.platforms.darwin;
};
Expand Down

0 comments on commit f29b9ff

Please sign in to comment.