Skip to content
#

programming-language

Here are 183 public repositories matching this topic...

michallepicki
michallepicki commented Nov 3, 2020

Given a module that imports code from another module, and public types (or functions) using that type, e.g.

import gleam/otp/node.{Node}
import gleam/otp/actor.{StartError}

pub type ApplicationStartMode {
  Normal
  Takeover(Node)
  Failover(Node)
}

pub fn worker(
  start: fn(argument) -> Result(Sender(msg), StartError),
) -> ChildSpec(msg, argument, argument) {
// ...
udoprog
udoprog commented Sep 9, 2020

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

pveyes
pveyes commented Oct 21, 2018

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) {
}
unseemly
paulstansifer
paulstansifer commented Nov 26, 2019

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.

Improve this page

Add a description, image, and links to the programming-language topic page so that developers can more easily learn about it.

Curate this topic

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."

Learn more

You can’t perform that action at this time.