MDR, a markdown runner mdr is a small program and markup designed to facilitate documentation and testing. I started it to ease Gwion's devellopment but it is not tied in any way to this project. Let' walktrough... 😄 Hello World let's write our first litterate progam. Define program structure hello_world.c @[[ Includes ]] int main(int argc, char** argv) { @[[ Print ]] } Add Headers As we need the puts function, we need stdio headers. Includes #include <stdio.h> Print function Print puts("Hello, World!"); Compile let's compile hello_world.c. exec: cc hello_world.c -o hello_world Yes, there should be no output, and that good news. Check Let's look at hello_world.c exec: cat hello_world.c #include <stdio.h> int main(int argc, char** argv) { puts("Hello, World!"); } That's the content of the source file we generated (and compiled). Test Then we run it exec: ./hello_world Hello, World! Do we read Hello…
I merged my first Pull Request that was not by me since long.
Plus it uncovered a few issues,
all thanks to the user that answered my post asking for help. I hope there'll be others!
Pranav Joglekar
Pranav2612000
Want to help development of a programming language?
Jérémie Astor ・ Jul 23 ・ 1 min read
Also I added locations to my (rudimentary) litterate system.
fennecdjay / mdr
MDR, the markdown runner
MDR, a markdown runner
mdr is a small program and markup designed to facilitate documentation and testing.
I started it to ease Gwion's devellopment but it is not tied in any way to this project.
Let' walktrough...😄
Hello World
let's write our first litterate progam.
Define program structure
Add Headers
As we need the puts function, we need stdio headers.
Print function
Compile
let's compile hello_world.c.
Yes, there should be no output, and that good news.
Check
Let's look at hello_world.c
That's the content of the source file we generated (and compiled).
Test
Then we run it
Do we read Hello…
EDIT: I keep forgetting I can use liquid tags in dev.