Skip to content

Commit 00b200b

Browse files
Fix typo and add sieve.crit to the output
1 parent 9adda6b commit 00b200b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CHANGELOG.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Updated from .Net 6 to [.Net 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0).
33
Updated from [Antlrcs4.6.6](https://github.com/tunnelvisionlabs/antlr4cs/releases/tag/v4.6.6) to [Antlr4.11.1](https://github.com/antlr/antlr4/releases/tag/4.11.1).
44
No more dynamics used inside the interpreter, this only happened because of the new Generic maths added in .NET 7 and for now, basically all numbers are converted to doubles but this needs urgent change.
5-
The compiled executable is about 5.5 times smaller and the execution time is about 2.93 times faster, this is only possible with the new [Native AOT](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/) introduced in .Net7.<br> Unfortunately it only works on win-x64 and Linux-x64 (it also works for win-arm64 and linux-arm64, but I don't own any ARM machines to compile it to those targets) for now, the other platforms still use [ReadyToRun](https://learn.microsoft.com/en-us/dotnet/core/deploying/ready-to-run).
5+
The compiled executable is about 5.5 times smaller and the execution time is about 4.5 times faster, this is only possible with the new [Native AOT](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/) introduced in .Net7.<br> Unfortunately it only works on win-x64 and Linux-x64 (it also works for win-arm64 and linux-arm64, but I don't own any ARM machines to compile it to those targets) for now, the other platforms still use [ReadyToRun](https://learn.microsoft.com/en-us/dotnet/core/deploying/ready-to-run).

CritLang/CritLang.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<PackageReference Include="Antlr4BuildTasks" Version="12.1.0" PrivateAssets="all" />
5050
</ItemGroup>
5151
<ItemGroup>
52-
<None Update="Content\test.crit">
52+
<None Update=".\sieve.crit">
5353
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5454
</None>
5555
</ItemGroup>

CritLang/CritLangCross.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<PackageReference Include="Antlr4BuildTasks" Version="12.1.0" PrivateAssets="all" />
5858
</ItemGroup>
5959
<ItemGroup>
60-
<None Update="Content\test.crit">
60+
<None Update=".\sieve.crit">
6161
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
6262
</None>
6363
</ItemGroup>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You can look [here](CritLang/sieve.crit) for more an implemantion of the [Sieve
3535
Check [here](https://github.com/lucascompython/CritLang/wiki/Language-Defenition) for the language definition.
3636
## Tips and Tricks
3737
You can have a else block after a while loop declaration to avoid a if statement.<br>
38-
To have syntax highligting you can set the language to Golang or Rust, I've tested both and they look fine to me.<br>
38+
To have syntax highlighting you can set the language to Golang or Rust, I've tested both and they look fine to me.<br>
3939
This language also has a `until` keyword, which is just like the `while` keyword but with the opposite condition.
4040
```rust
4141
until num > 10 {

0 commit comments

Comments
 (0)