Language grammer #2
Replies: 18 comments 36 replies
TODOS:
|
|
@Aliqyan-21, what are the behivour of |
|
I'm not a fan of the |
|
@skadewdl3 we don't have mut keyword in grammar, we just have |
|
@skadewdl3 yes that's a mistake, it will be removed. |
|
@vasucp1207 and @Aliqyan-21 why there is no |
|
@vasucp1207 we need to add |
|
todo:
|
|
Do we need blocks in bedrock? other languages have these as, they use braces for it We could have something like: |
|
yes right, @vasucp1207 was working on some region based memory model so I was thinking about these blocks |
|
Uhh, I missed this one completely, I think this is not there before |
|
@Aliqyan-21, we also need a slice type for passing arrays to functions or to return from a function. |
|
I was thinking the same thing. let's add this in grammar: good? |
|
for defer suppose we want multiple statements like: then we need some kind of block for defer instead of: we would want: |
|
We overlooked a very important caviat, we decided on the type keyword for defining types like struct/enums, etc because we could use it for defining any new types, but we did not included it in the grammar. We wanted something like this too but yeah, so I was thinking that struct and enums are ofc special kind of types so defined in blocked (struct ... end) and for aliases we use ';' instead of end. and this is grammar I am thinking: |
|
We have optional in grammer but how we gonna represent it, should we add a |
|
For strings we had a discussion and we all settled with the null terminates strings like this and for using in So should we lock this in? |

Uh oh!
There was an error while loading. Please reload this page.
Initial language grammer proposal
All reactions