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

Require syntax document #74

Open
deafwolf opened this issue Jun 21, 2017 · 8 comments
Open

Require syntax document #74

deafwolf opened this issue Jun 21, 2017 · 8 comments

Comments

@deafwolf
Copy link

As the title, the readme is too simple.

@MarcusE1W
Copy link

Have you noticed the examples in anko/_example/scripts/ ? Maybe that helps a bit?

@AlekSi
Copy link

AlekSi commented Oct 12, 2017

Still, language specification would be very useful.

@MichaelS11
Copy link
Contributor

Was curious, what would this look like? Is there an example from another language like Go, JavaScript, Python, etc.?

@AlekSi
Copy link

AlekSi commented Dec 29, 2017

Go language specification is a good example.

@MichaelS11
Copy link
Contributor

Yeah, having language specification would be very nice. I personally would like to see 95%+ code coverage testing first.

@floren
Copy link

floren commented Mar 28, 2018

@MichaelS11 It is hard to write tests without knowing that the expected behavior is. I agree, a language spec is important. I'm writing a description for the documentation of my own project, but in order to do it I'm having to dive into the anko codebase because the examples aren't sufficient. Right now I'm trying to figure out if it's possible to expand / append to a slice, and what precisely is the difference between a slice and an array anyway.

@MichaelS11
Copy link
Contributor

There is a lots still to do, including examples and language specifications. Anyone who would like to help, good PRs are excepted.

Until more examples are made for slices, I would suggest checking out the tests:

https://github.com/mattn/anko/blob/master/vm/vmArraysAndMaps_test.go

@floren
Copy link

floren commented Mar 28, 2018

A BNF syntax would be great, although it's been so long since I've written one that I'm not confident I could pull it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants