Log in - Edit - History

Plof Basics

First things first -- an introduction. Plof is an interesting language in that it is extremely flexible (see the design). Some of the ways in which the language's grammar can be modified will be explained in later tutorials. For now, we are using the default grammar from the standard library (plofcore/src/pul/*), which presents a language with some similarities to JavaScript (but many unique features).

Here's a simple hello world:

Stdout.write "Hello, world!\n"

In fact, you've probably seen it if you've looked at the Plof main page. Stdout is an object, write is a method, and "Hello, world!\n" is of type String. Pretty simple for now, but this was just an introduction. The next tutorial will be about variables.

Next tutorial