DEV Community

Cover image for ZypeC - A free & OpenSource collection of Compilers
Rajdeep Malakar for Zype, Inc.

Posted on

ZypeC - A free & OpenSource collection of Compilers

ZypeC is the set of easy-to-use Compilers based on Python. Unfortunately it only supports Markdown to HTML Compilation. But the Markdown Compiler is also very powerful.

Examples

# H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 
Enter fullscreen mode Exit fullscreen mode

To

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>ZypeC Generated HTML Pages</title> </head> <body> <h1>H1</H1> <h2>H2</H2> <h3>H3</H3> <h4>H4</H4> <h5>H5</H5> <h6>H6</H6> </body> </html> 
Enter fullscreen mode Exit fullscreen mode

How to start ?

Firstly, create a zype.config.json file with the content:

{ "compiler": "compiler.json" } 
Enter fullscreen mode Exit fullscreen mode

And then, create a compiler file as you've mentioned in compiler with the content to compile a Markdown file named file.md to HTML:

{ "file": "file.md", "Content-Type": "text/markdown", "to": "html" } 
Enter fullscreen mode Exit fullscreen mode

And finally, run the following command to start compilation.

zype start 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)