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

Is there a plan to provide a language spec? #1

Open
nanmu42 opened this issue Dec 17, 2019 · 12 comments
Open

Is there a plan to provide a language spec? #1

nanmu42 opened this issue Dec 17, 2019 · 12 comments
Labels
documentation Improvements or additions to documentation

Comments

@nanmu42
Copy link

nanmu42 commented Dec 17, 2019

Hi,

It would be nice if the language specification can be provided, for example: https://golang.org/ref/spec, so that people may implement/port the language to the backend they like.

Very impressive work, I enjoy it a lot!

@freddy5566
Copy link

agree @nanmu42 , I want to implement other language, does it have doc or something like it?

@LingDong-
Copy link
Member

Hi nanmu42 and jamfly,
Thanks! Indeed writing the spec is among my top priorities, I’m working on it and you can expect it in a couple of days. Will update here when done. :-)

@nanmu42
Copy link
Author

nanmu42 commented Dec 17, 2019

Brilliant! Looking forward to it. 👍

@das6ng
Copy link

das6ng commented Dec 19, 2019

Great work!

LingDong- pushed a commit that referenced this issue Dec 21, 2019
@FrankHB
Copy link

FrankHB commented Dec 21, 2019

Well done... possible towards a more practical one not so toyish like Rust? ;)

@cuixiping
Copy link
Contributor

if_statement                : IF if_expression '者' statement+ (ELSE statement+)? FOR_IF_END ;

Should statement+ be statement* ?

@LingDong-
Copy link
Member

@cuixiping Good catch!
@jiangzoi fix this XD

@jiangzoi
Copy link
Collaborator

if_statement                : IF if_expression '者' statement+ (ELSE statement+)? FOR_IF_END ;

Should statement+ be statement* ?

Thank you for proposing this suggestion.
Let's see what will happen if statement+ is replaced by statement*:
若「滿足條件」者。也
Which does not make much sense from reading. That is why we consider to put statement+ here.

@cuixiping
Copy link
Contributor

cuixiping commented Jan 12, 2020

@jiangzoi

若「滿足條件」者。
若非
      do something
也

and why is statement * in for statements but if statement?
They should not be different.

LingDong- pushed a commit that referenced this issue Jan 20, 2020
@antfu
Copy link
Member

antfu commented Feb 2, 2020

Now available on https://wy-lang.org/spec

@antfu antfu closed this as completed Feb 2, 2020
@FrankHB
Copy link

FrankHB commented Feb 2, 2020

Is this completed? I find the grammar summary, but nothing about semantics, nor any rules of conformance.

@antfu antfu reopened this Feb 3, 2020
LingDong- pushed a commit that referenced this issue Feb 8, 2020
@fe26game
Copy link

fe26game commented Nov 2, 2022

  • 1
  • 2
  • 3
  • ok1
  • ok2

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

No branches or pull requests

10 participants