Comments (12)
@yegor256 WDYT
from eo.
@levBagryansky it should not be legal, comments in front of anonymous (without name) abstract object should be prohibited
from eo.
@maxonfjvipon if I remove comments, will be ok?
from eo.
@levBagryansky speaking about taking attribute from abstract object - seems legal
from eo.
@maxonfjvipon if I remove comments, will be ok?
@levBagryansky I think so, but not 100% sure
from eo.
@levBagryansky I think, this should be legal:
# Test
[] > experements
.say > @
[]
TRUE > say
from eo.
@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.
@levBagryansky try this one instead:
# This is an experimental object with a good enough documentation block
[] > experements
.say > @
[]
TRUE > say
from eo.
@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.
@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.
@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.
@maxonfjvipon ok, thanks
from eo.
Related Issues (20)
- merge smaller libs into this repo HOT 7
- Printing PHI Expressions Extremely Slow HOT 4
- list.eo:208-211: The object does not work. After moving... HOT 2
- PhPackage need update HOT 2
- BytesRaw.java:33-36: Method {@link BytesOf#shift} should... HOT 2
- align-test-classes.xsl:27-28: Add link to corresponding... HOT 2
- remove-high-level-inner-classes.xsl:27-28: Create... HOT 14
- map.eo:105-112: Find a way to link hash code and index of... HOT 2
- text.eo:313-315: Implement text.replaced object. This... HOT 3
- Replace `int` and `float` with `number` HOT 1
- `eo-maven-plugin` allows attributes without names in an abstract object HOT 10
- Dataized.java:54-57: It is necessary to call {@link... HOT 2
- Dataized.java:64-67: It is necessary to call {@link... HOT 2
- PhDefault.java:65-68: It is necessary to call {@link... HOT 2
- PhTraced.java:50-53: It is necessary to call {@link... HOT 2
- Too many nested function calls HOT 9
- `xmir-to-phi` doesn't check PHI labels HOT 2
- Unable to compile "Hello World" program from README HOT 13
- Can't print simple string HOT 6
- XMIR representation of an alias? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eo.