Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the DFLang syntax #19

Open
JustusAdam opened this issue Oct 23, 2018 · 0 comments
Open

Document the DFLang syntax #19

JustusAdam opened this issue Oct 23, 2018 · 0 comments

Comments

@JustusAdam
Copy link
Member

JustusAdam commented Oct 23, 2018

The syntax used by the DFLang parser in the test-tools package should be documented somewhere.

The syntax currently looks like the following:

(* comments work just like they do in alang *)
let v = some.package/sf0<0> (* function id, required *) (arg1, $4 (* env arg *)) in
let (a, b) (* destructuring *) = dataflow (* for a dataflow function, rather than a stateful function *) ohua.lang/collect<1>(size, elements) in
let c = some.pacakge/sf1<2> () (* function with no arguments *) [size] (* optional context arg *) in
returnVar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant