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 String = Nonempty List ASCII

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

"Organize a boardgame session" : String

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

start = empty @List @String `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

Challenge: define a List of strings using other ways.

Next we should describe how to print individual String:

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

Challenge: insert some character before String.

Finally, here is whole program structure:

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