ASCII art diagram converter: Difference between revisions

Content added Content deleted
m (→‎{{header|Racket}}: stub added)
m (→‎{{header|Racket}}: checkpoint)
Line 345: Line 345:


=={{header|Racket}}==
=={{header|Racket}}==

Theree files:
* <b><code>ascii-art-parser.rkt</code>:</b> provides the function <code>ascii-art->struct</code>, which converts ASCII art from a string (or input port) to a list of word-number, bit range and id
* <b><code>ascii-art-reader.rkt</code>:</b> uses this to provide a sytntax <code>define-ascii-art-structure</code> which defines a structure using the art work
* <b><code>test-ascci-art-reader.rkt</code>:</b> gives it all a rigourousish going over

===<code>ascii-art-parser.rkt</code>===
<lang racket>
</lang>

===<code>ascii-art-reader.rkt</code>===
<lang racket>
</lang>

===<code>test-ascii-art-reader.rkt</code>===
<lang racket>
</lang>

{{out}}
Nothing much to see... all tests pass