programming-language
Here are 183 public repositories matching this topic...
-
Updated
Nov 9, 2020 - Rust
-
Updated
Nov 9, 2020 - Rust
-
Updated
Jul 9, 2019 - Rust
Support attributes
Support rust style attributes;
#[hello]
fn test() {
}
#[hello]
struct Foo {
}This will be invoked as macros with the ast of the thing that it annotates as input, and anything produced by the macro will be appended to the source (to work the same as Rust procedural macros).
- Implement parsing (#83).
- Add compiler support to process attributes.
Implementa
At some point we should probably upgrade the argument parser to use nom version 5. They got rid of most of the macro magic. I am not familiar with nom (although interested), but there is an upgrade guide that should hopefully make the transition a bit more smooth: https://github.com/Geal/nom/blob/master/doc/upgrading_to_nom_5.md
-
Updated
Nov 10, 2020 - Rust
-
Updated
Nov 10, 2020 - Rust
This is something we need to have. While it does have some downsides in introducing bad practice behavior, it's pretty useful.
Given lib.wu with the following content:
bob := "BUILDER"
important_number: float = 100.0The following otherfile.wu ...
import lib { * }Should automatically generate the following import code in otherfile.lua:
-
Updated
Oct 15, 2020 - Rust
-
Updated
Jul 14, 2019 - Rust
-
Updated
Nov 1, 2020 - Rust
Dont panic
In quite a few places in the code, you have panic!() or unwarp(). This is frowned upon in the Rust community. We should have dedicated error types instead
Currently we can use any reserved word/token (such as var, if, etc) as identifier in naskah which won't be valid JS. The simplest thing we can do is add underscore before printing the identifier if it's a reserved word in JS
So that:
misal x = 3;
misal var = 2;
jika while benar {
}
should be compiled to
var x = 3;
var _var = 2;
if (_while == true) {
}-
Updated
Jun 24, 2019 - Rust
-
Updated
Aug 10, 2017 - Rust
-
Updated
Nov 10, 2020 - Rust
-
Updated
Sep 21, 2020 - Rust
-
Updated
Jun 13, 2020 - Rust
-
Updated
Sep 21, 2020 - Rust
Remove `Ty`
It was originally something else (don't really remember what), but now it's just a thin wrapper around Ast, and it does nothing but get in the way. There's a lot of random converting back and forth between Ty and Ast currently that would get deleted in the process.
-
Updated
Apr 29, 2019 - Rust
-
Updated
Feb 20, 2019 - Rust
-
Updated
Nov 10, 2020 - Rust
-
Updated
Oct 3, 2020 - Rust
-
Updated
Aug 17, 2020 - Rust
-
Updated
Sep 1, 2020 - Rust
-
Updated
Jun 3, 2019 - Rust
-
Updated
Oct 5, 2020 - Rust
Improve this page
Add a description, image, and links to the programming-language topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the programming-language topic, visit your repo's landing page and select "manage topics."
Given a module that imports code from another module, and public types (or functions) using that type, e.g.