From 1774e8af1e38075a0bb2732c7ff8a2f8608b3830 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Thu, 14 Dec 2017 11:14:37 -0800 Subject: [PATCH] Created Hello World (markdown) --- Hello-World.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Hello-World.md diff --git a/Hello-World.md b/Hello-World.md new file mode 100644 index 0000000..be86ca4 --- /dev/null +++ b/Hello-World.md @@ -0,0 +1,8 @@ +This is probably the simplest PLASMA program you can write: +``` +include "inc/cmdsys.plh" + +puts("Hello, world.\n") +done +``` +However, it is significant in that it demonstrates the basic layout of a PLASMA source file. Almost all PLASMA files will have `include "inc/cmdsys.plh"` at the beginning. All PLASMA files have to end with a `done` line. There could be more text afterwards, but it will be ignored by the compiler. Potentially a good place to put some documentation of the above code. And in the middle, we have a function call to put a string to the screen. The screen has an embedded carriage-return at the end, formatted like you would see in a C language style string, escaped with a `\` character. \ No newline at end of file