Skip to content

Want to write a program? Want to write a story? Why not both?

Notifications You must be signed in to change notification settings

ehudt/narrative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

narrative

Want to write a program? Want to write a story? Why not both?

Many people think that in order to be a fine programmer, one must also be a good writer. narrative programming language takes this notion to the next level - All narrative programs are stories and all stories are narrative programs, and should be judged by their literary quality as much as by their functionality.

Language syntax

Technically speaking, narrative presents an alternative, more creative syntax to the widely-used brainfuck programming language. Only, instead of being minimalistic, it is quite the opposite. Every word in your story represents a single instruction (equivalent to a brainfuck instruction), determined by its first letter.

Specification

Opening letter Brainfuck equivalent
e, r, u, v +
t, d, m ,k -
a, l, w, j >
o, c, f, x <
i, g, q [
n, y, z ]
s, p .
h, b ,

Example

The following program prints "Hello World!":

Once upon a time...

About

Want to write a program? Want to write a story? Why not both?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published