Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Mar 15, 2024
2 parents 517a922 + 036cdcc commit 07f7498
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 1 deletion.
@@ -0,0 +1,35 @@
eo: |
# Test.
[] > compiles-correctly-with-long-duplicate-names
# Long object 1.
[] > long-object-name
# Long object 2.
[] > long-object-name
# Long object 3.
[] > long-object-name
# Long object 4.
[] > long-object-name
# Long object 5.
[] > long-object-name
TRUE > @
phi: |
{
compiles-correctly-with-long-duplicate-names ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦⟧
⟧,
φ ↦ Φ.org.eolang.bool(
α0 ↦ Φ.org.eolang.bytes(
Δ ⤍ 01-
)
)
}
@@ -0,0 +1,23 @@
tests:
- //o[@abstract and @name='long-object-name' and o[@abstract and @name='long-object-name' and o[@abstract and @name='long-object-name' and o[@abstract and @name='long-object-name' and o[@abstract and @name='long-object-name']]]]]
phi: |
{
compiles-correctly-with-long-duplicate-names ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦
long-object-name ↦ ⟦⟧
⟧,
φ ↦ Φ.org.eolang.bool(
α0 ↦ Φ.org.eolang.bytes(
Δ ⤍ 01-
)
)
}
2 changes: 1 addition & 1 deletion eo-parser/src/main/resources/org/eolang/parser/_funcs.xsl
Expand Up @@ -29,7 +29,7 @@ SOFTWARE.
</xsl:function>
<xsl:function name="eo:attr" as="xs:boolean">
<xsl:param name="o" as="element()"/>
<xsl:sequence select="$o/parent::o[not(@base)] and not($o/@base) and not($o/@atom) and not($o/o)"/>
<xsl:sequence select="$o/parent::o[not(@base)] and not($o/@base) and not($o/@atom) and not($o/o) and $o[not(eo:abstract(.))]"/>
</xsl:function>
<xsl:function name="eo:alias-name" as="xs:string">
<xsl:param name="object" as="element()"/>
Expand Down
@@ -0,0 +1,44 @@
origin: |
# This is the default 64+ symbols comment in front of named abstract object.
[] > compiles-correctly-with-long-duplicate-names
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
TRUE > @
straight: |
# This is the default 64+ symbols comment in front of named abstract object.
[] > compiles-correctly-with-long-duplicate-names
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
TRUE > @
reversed: |
# This is the default 64+ symbols comment in front of named abstract object.
[] > compiles-correctly-with-long-duplicate-names
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
# This is the default 64+ symbols comment in front of named abstract object.
[] > long-object-name
TRUE > @

0 comments on commit 07f7498

Please sign in to comment.