You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crit is an interpreted dynamic programming language made with C# and [ANTLR4](https://www.antlr.org/).<br>
5
-
This language is still very experimental and is no were to be used for production.<br>
6
-
Why the name? Because in League of Legends, **no crit = no bitches**.<br>
7
4
8
-
The language is [turing complete](https://en.wikipedia.org/wiki/Turing_completeness) (I think) so theoretically you can solve any computational problem with Crit!<br>
5
+
Crit is an interpreted dynamic programming language made with C# and [ANTLR4](https://www.antlr.org/).
6
+
This language is still very experimental and is no were to be used for production.
7
+
Why the name? Because in League of Legends, **no crit = no bitches**.
8
+
9
+
The language is [turing complete](https://en.wikipedia.org/wiki/Turing_completeness) (I think) so theoretically you can solve any computational problem with Crit!
9
10
10
11
The syntax is somewhat similar to Golang's syntax.
11
12
Check the Change log [here](CHANGELOG.MD).
12
13
13
14
## Code Preview
15
+
14
16
```rust
15
17
num=5;
16
18
#Comment
@@ -29,68 +31,67 @@ else {
29
31
WriteLine("num was already bigger than 10.");
30
32
}
31
33
```
32
-
You can look [here](CritLang/sieve.crit) for more an implemantion of the [Sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes) in crit!
34
+
35
+
You can look [here](https://github.com/lucascompython/CritLang/tree/master/Examples) for more an implemantion of the [Sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes) in crit!
33
36
34
37
## Documentation
38
+
35
39
Check [here](https://github.com/lucascompython/CritLang/wiki/Language-Defenition) for the language definition.
40
+
36
41
## Tips and Tricks
37
-
You can have a else block after a while loop declaration to avoid a if statement.<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>
42
+
43
+
You can have a else block after a while loop declaration to avoid a if statement.
44
+
To have syntax highlighting you can set the language to Golang or Rust, I've tested both and they look fine to me.
39
45
This language also has a `until` keyword, which is just like the `while` keyword but with the opposite condition.
0 commit comments