eoc
eoc copied to clipboard
Cannot dataize simple object
Getting this error: [1:0] mismatched input '[' expecting {COMMENTARY, META, 'Q', 'QQ', '*', '<', '&', '$', '(', '@', '^', BYTES, BOOL, STRING, INT, FLOAT, HEX, NAME, TEXT}: "[] > main"
main.eo:
[] > main
QQ.io.stdout > @
"Hello, World!"
Running:
$ eoc dataize main.eo
@kerelape since EO 0.35.0 all named abstract objects (like main in your example) must have mandatory comment in front itself. You may check this issue and this PR.
This feature is not fully implemented yet, but soon all such comments must be at lease 64 characters long.
So this should work:
# This is my awesome object that prints "Hello, World!" to the console.
[] > main
QQ.io.stdout > @
"Hello, World!"
@maxonfjvipon @kerelape I think it should be this one (with args):
# This is my awesome object that prints "Hello, World!" to the console.
[args] > main
QQ.io.stdout > @
"Hello, World!"
@kerelape I believe, it's explained