charly
charly copied to clipboard
🐈 The Charly Programming Language | Written by @KCreate
Hi @KCreate I know this project isn't maintained anymore, but I want to ask you something, Do you think would be possible to write a VM machine for crystal? Ref:...
Hi @KCreate Would be possible to use Charly inside Crystal? I mean: ```ruby require "charly" puts Charly.run("2 + 2") # => 4 code =
Implement the following AND assignment operators: ```javascript &= // AND assignment |= // OR assignment ^= // XOR assignment = // right-shift assignment ```
Enums
```javascript enum MyEnum { Foo Bar Baz } MyEnum.Foo # => 0 MyEnum.Bar # => 1 MyEnum.Baz # => 2 ``` Enums can also have static methods ```javascript enum MyEnum...
You should be able to put methods added via native extensions into a namespace. ```crystal charly_namespace "mynamespace" do charly_api "mymethod" do TString.new "Hello world" end end ``` Access inside charly:...
Remove the usage of the `OptionParser` and create a order-sensitive CLI interface. See: https://github.com/crystal-lang/crystal/blob/master/src/compiler/crystal/command.cr#L58 Commands should be: ```bash charly # starts the REPL charly repl # starts the REPL charly...
```javascript let name = "world" let message = "up" "hello #{name} whats #{message} result: #{2 + 2 * 2}" ``` becomes: ```javascript "hello " + (name).to_s() + " whats "...
Currently the prelude is being passed via the require call and added to the new visitor. The prelude should be the top-most layer in the hierarchy, appending program execution scopes...
This PR implements a `net` module than can be used to create HTTP servers. Also includes the following utility functions: - `Function#run` - `Function#run_with_context` # Todos: - [ ] Write...
```javascript // binary 0b00001000 // => 8 0b00000100 // => 4 // octal 0o00000040 // => 32 0o00000020 // => 16 // hex 0x00000F00 // => 256 0x00000010 // =>...