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

Cannot dataize simple object #237

Open
kerelape opened this issue Feb 15, 2024 · 2 comments
Open

Cannot dataize simple object #237

kerelape opened this issue Feb 15, 2024 · 2 comments

Comments

@kerelape
Copy link
Member

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
@maxonfjvipon
Copy link
Member

maxonfjvipon commented Mar 2, 2024

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

@yegor256
Copy link
Member

yegor256 commented Mar 3, 2024

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

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

No branches or pull requests

3 participants