GithubHelp home page GithubHelp logo

Comments (12)

levBagryansky avatar levBagryansky commented on August 16, 2024

@yegor256 WDYT

from eo.

maxonfjvipon avatar maxonfjvipon commented on August 16, 2024

@levBagryansky it should not be legal, comments in front of anonymous (without name) abstract object should be prohibited

from eo.

levBagryansky avatar levBagryansky commented on August 16, 2024

@maxonfjvipon if I remove comments, will be ok?

from eo.

maxonfjvipon avatar maxonfjvipon commented on August 16, 2024

@levBagryansky speaking about taking attribute from abstract object - seems legal

from eo.

maxonfjvipon avatar maxonfjvipon commented on August 16, 2024

@maxonfjvipon if I remove comments, will be ok?

@levBagryansky I think so, but not 100% sure

from eo.

yegor256 avatar yegor256 commented on August 16, 2024

@levBagryansky I think, this should be legal:

# Test
[] > experements
  .say > @
    []
      TRUE > say

from eo.

levBagryansky avatar levBagryansky commented on August 16, 2024

@yegor256 @maxonfjvipon such test cannot be parsed by eo-maven-plugin:

# Test
[] > experements
  .say > @
    []
      TRUE > say
[ERROR] Failed to parse '/home/tardis3/eo/eo-runtime/src/test/eo/org/eolang/cage-tests.eo:206': [206:2] no viable alternative at input '# Test\n[] > experements\n  INT.': "  .say > @"
[INFO] Parsed 26 .eo sources to XMIRs
[INFO] Optimized 26 out of 26 XMIR program(s)
[ERROR] net.sf.saxon.style.XSLMessage@884f1e2: This transformation must be applied only after you remove @method attributes from objects, using 'wrap-method-calls.xsl'
[ERROR] #fatalError(): Processing terminated by xsl:message at line 82 in set-locators.xsl; SystemID: file:///org/eolang/parser/set-locators.xsl; Line#: 82; Column#: 36
[ERROR] Processing terminated by xsl:message at line 82 in set-locators.xsl
[ERROR] 'org.eolang.maven.ShakeMojo@7d38f2ec' execution failed
[ERROR] Processing terminated by xsl:message at line 82 in set-locators.xsl
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

from eo.

yegor256 avatar yegor256 commented on August 16, 2024

@levBagryansky try this one instead:

# This is an experimental object with a good enough documentation block
[] > experements
  .say > @
    []
      TRUE > say

from eo.

maxonfjvipon avatar maxonfjvipon commented on August 16, 2024

@levBagryansky dot in reversed notation must be AFTER the object, not BEFORE it:

# This is an experimental object with a good enough documentation block.
[] > experements
  say. > @
    []
      TRUE > say

from eo.

levBagryansky avatar levBagryansky commented on August 16, 2024

@maxonfjvipon Thanks, your example works.
Btw, such example does not work

# This is an experimental object with a good enough documentation block.
[] > experements
  say. > @
    # Commentary.
    []
      TRUE > say

from eo.

maxonfjvipon avatar maxonfjvipon commented on August 16, 2024

@levBagryansky because you use comment in front of abstract object without name, which is prohibited
This should work:

# This is an experimental object with a good enough documentation block.
[] > experements
  say. > @
    # Commentary.
    [] > x
      TRUE > say

from eo.

levBagryansky avatar levBagryansky commented on August 16, 2024

@maxonfjvipon ok, thanks

from eo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.