objectionary / eo

EOLANG, an Experimental Pure Object-Oriented Programming Language Based on 𝜑-calculus
https://www.eolang.org
MIT License
1.02k stars 128 forks source link

Missing parsed object documentation in .xml files. #3502

Closed SenjeyB closed 6 days ago

SenjeyB commented 1 week ago

The comment from the listing block is not displayed in the object block after parsing.

...
   <listing># My first object in EO. This comment is at least 64 characters long.
[args] &gt; hello
  QQ.io.stdout &gt; @
    "Hello, world!\n"
</listing>
   <errors/>
   <sheets/>
   <license/>
   <metas/>
   <objects>
      <o abstract="" line="2" name="hello" pos="0">
         <o line="2" name="args" pos="1"/>
         <o base="QQ" line="3" pos="2"/>
         <o base=".io" line="3" method="" pos="4"/>
         <o base=".stdout" line="3" method="" name="@" pos="7">
            <o base="string" data="bytes" line="4" pos="4">48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21 0A</o>
         </o>
      </o>
   </objects>
</program>
...
yegor256 commented 6 days ago

@SenjeyB it will look like this:

<program>
  <comments>
    <comment line="222">here goes the comment text</comment>
    <comment line="444">here goes the comment text</comment>
  </comments>
  <objects>
    <o line="222">
      [...]
    </o>
  </objects>
</program>
yegor256 commented 6 days ago

@SenjeyB it's done, you can use version 0.42.0