Menu

#7 Generate files (.save) more human readable

open
nobody
arch-editor (7)
2
2007-11-11
2007-11-11
No

Opening .save files in a plain text editor shows a rather messy layout. There is no indentation (except of merged TA model) and the CRLF separation is not very helpful.

This is how it looks now:
-------------------------------------------------------
<TYPEDEFS>
<COMPONENTDESC id="Clockenzie#1">

<OUTPORT mode="trig" type="void" id="clockOut#2"/>

<REALISATION>
<CLOCK period="10" jitter="0">
</CLOCK>

</REALISATION>
</COMPONENTDESC>
<COMPONENTDESC id="Comp01#9">
<INPORT mode="trig" type="void" id="comp02In#10"/>

<OUTPORT mode="trig" type="void" id="comp02Out#11"/>

<BEHAVIOUR>
<MODEL filename="dummy01" type="TA">
</MODEL>
</BEHAVIOUR>
<REALISATION>
<ENTRYFUNC filename="---" entry="---">

</ENTRYFUNC>

</REALISATION>
</COMPONENTDESC>

</TYPEDEFS>
-------------------------------------------------------

Also, for some reason, the "normal" .save and the "Uppaal" .save have different line-endings. (normal is "unix" styled, and Uppaal is "windows" styled).

Discussion

  • Davor Slutej

    Davor Slutej - 2007-11-11
    • priority: 5 --> 2
     
  • Davor Slutej

    Davor Slutej - 2008-02-07

    Logged In: YES
    user_id=803361
    Originator: YES

    For inspiration, open in Visual Studio, CTRL-K, CTRL-D.. ;)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.