Re: Another idea - MD generator

new topic     » goto parent     » topic index » view thread      » older message » newer message
axtens_bruce said...

So I was reading up on FORTH implementations. I came across Konilo. That led me to RetroForth and that led me to Unu, a simple format allowing mixing of code, commentary, and tests within a source file.

That got me thinking about another way of writing Euphoria. A file extension of .exd (if that already exists, choose something else). A file in markdown format with Euphoria code marked with

```eui 
? "Hello World" 
``` 
and possibly tests with
```eutest 
``` 
When the file is evaluated, an MD file is generated with the Euphoria codeblocks evaluated and the results embedded.

It occurs to me this would make report-writing a bit easier for those referring to changeable web resources like stocks.

Eudoc already does this via its --test-eucode option, but it has many shortcomings. Eudoc, like Euweb (this forum), still uses Creole, which effectively lost the format war with Markdown soon after both hit the internet. And nobody's really touched the Eudoc code in ages. First thing I'd like to see towards improving this is a good Markdown parsing library for Euphoria, preferably in native code and not just a wrapper for any of the numerous C libraries floating around.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu