Murat Kasimov

More about me

Я language (β)

/Я language (β)/Tutorials/Command line-task-manager-1/

Full source codeNext chapter

For now, task is just a sequence of characters i.e. string:

type Title = Nonempty List ASCII

With help of literals we can initialise them as regular strings:

"Organize a boardgame session" : Title

There are many ways to initialise a list, here is one of them:

initial = empty @List @Title `yi` push `hv` "Apply to that new position" `ho` that `yi` push `hv` "Organize a boardgame session" `ho` that `yi` push `hv` "Buy a water gun for Songkran" `ho` that `yi` push `hv` "Find a way to fix ligatures" `ho` that

Next we should describe how to print individual title:

print = is @Title `ho__'yokl` Forth `ha` Await `ha` output `ho__'yuk` Await `ha` output `ha` Caret `hv'he` Newline

Finally, here is whole program structure:

main = initial `yokl` Forth `ha` Await `ha` print