eoc icon indicating copy to clipboard operation
eoc copied to clipboard

Cannot dataize simple object

Open kerelape opened this issue 1 year ago • 2 comments

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 avatar Feb 15 '24 11:02 kerelape

@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 avatar Mar 02 '24 14:03 maxonfjvipon

@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!"

yegor256 avatar Mar 03 '24 04:03 yegor256

@kerelape I believe, it's explained

yegor256 avatar Oct 14 '24 03:10 yegor256