Is there a plan to provide a language spec?
nanmu42 opened this issue Β· 12 comments
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!
agree @nanmu42 , I want to implement other language, does it have doc or something like it?
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. :-)
Brilliant! Looking forward to it. π
Great workοΌ
if_statement : IF if_expression 'θ
' statement+ (ELSE statement+)? FOR_IF_END ;
Should statement+
be statement*
?
@cuixiping Good catch!
@jiangzoi fix this XD
if_statement : IF if_expression 'θ ' statement+ (ELSE statement+)? FOR_IF_END ;
Should
statement+
bestatement*
?
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.
θ₯γζ»ΏθΆ³ζ’δ»Άγθ
γ
θ₯ι
do something
δΉ
and why is statement *
in for
statements but if
statement?
They should not be different.
Now available on https://wy-lang.org/spec
Is this completed? I find the grammar summary, but nothing about semantics, nor any rules of conformance.
- 1
- 2
- 3
- ok1
- ok2