DAYS LATER (continued)

*Dring Dreeng*

Mr. Lug : Hum finally, there is something wrong

you : ah, what it is?

Mr. Lug : I keep missing those annoying symbols you choose

You : Oh but many reputable languages use the semicolon to separate statements

Mr. Lug : Reputable ? Huh ! This does not conform to humans’ comfort nor to the exigency of the modern age i dare state

You : You know js ? well, JavaScript is used everywhere and it   u s  e   s .  .   .

Mr. Lug : I want it natural

You : Ok we’ll refine it

Mr. Lug : refine is bad word, you’ll make it human

You : … 



codebot : yes, it is an interesting proposition, increasing the ergonomic index of the language, making it more fun to use,easier

you : Hum what do i use now to separate one line from the other ??

show qwerty;

he wants it like :

show qwerty

but what happens when

show the weather is fine

show the road is clear

codebot : invisibility does not imply inexistance

you : euhh

codebot : Meaning, separate it by what you don’t see but exist . . . the newline character \n in python. you don’t see it but it exists

the line is actually

show the weather is fine\nshow the road is clear

you : ah ok i split it at \n nice. code now :

reader =open('printlang.lug','r')

langstring ='\n','')

statementslist = langstring.split(';')

for i in range (len(statementslist)):

    if statementslist[i][0:4] == 'show':

        print( statementslist[i][6:len(statementslist[i])])

i must remove the .replace \n stuff and split at \n

reader =open('printlang.lug','r')

langstring = #removed .replace('\n' ...

statementslist = langstring.split('\n')

for i in range (len(statementslist)):

    if statementslist[i][0:4] == 'show':

        print( statementslist[i][5:len(statementslist[i])])

codebot : yes, now

show wkjfnwjfb

show fhfnowr

_____________________ output :



works well !

you : he’ll surely like it !

Trial Successful

you : Mr. Lug Ha liked it ! guess we’ll only have maintenance jobs to do

Walking into your home library, you were moving around stuffs on an early weekend, after a Friday full of tasks. You find an old book, tattered with copious ears . . . Nice, subtle layers of fine dust had settled in between the pages, it came from thrown away books from the Library which you sheltered . . “Natural expression” by U. R. Talkin. It reads :

… Parsers originated from the dream to merge man and machine in a single flow. But natural language set up it’s camp and toughly defended it’s position amidst a world of lightening-speed development. Parsers retreated and confined their might on machine instructions, more suited to their rigid temperaments. It was a victory, but a great potential was missed out …

A call for notes


Mr Lug : Ah thanks i found you ! i want to add some explanations about what i am printing. To remember stuffs

you : we’ll work hard ok it *click on Mr. Lug’s side* we’ll . . . good all Mr. Lug he is always hurrying

codebot : master, he is asking for comments to be included

you : ah what a queer way to tell

codebot : whatever, let me ask you few things. Do comments contain instructions ?

you : No, just some explanations

codebot : So we can ignore it. We must just tell our interpreter what to ignore. Currently this works :

this is a comment

show the crescent is rising

showing the moon

show the moon appears

This works well as we print if the word show is at the begining of the line. Commenting that way works. But, we won’t be telling Mr. Lug that . . .

you : Why? Our problem is already solved

codebot : Hum solved yes, but for now. Then we have readeability, explicitly declaring a comment makes if more fun to read

you : Ok, let us see how we can make comments . . .

-> This is a comment

! This is a comment

"" This is a comment

COMMENT This is a comment

@note This is a comment

:: This is a comment

$ This is a comment

% This is a comment

~ This is a comment

{ This is a comment }

>>>>> This is a comment


i think the briefer the better

codebot : yes, fewer keystrokes is very comfortable, however, it is v/s readeability

you : The @note is quite explicit

codebot : no problem, looks nice

@note about vegetables
show cauliflower
show carrot 
show beetroot
show eggplant
@note about fruits
show apple
show orange 
show strawberry

you : after design, now implementation . . . so if the interpreter / program finds @note at the begining of the phrase it does what ?

codebot : it continues . . .

you : so,

reader =open('printlang.lug','r')

langstring = 

statementslist = langstring.split('\n')

for i in range (len(statementslist)):

    if statementslist[i][0:4] == 'show':

        print( statementslist[i][5:len(statementslist[i])])

    elif statementslist[i][0:5] == '@note':


@note test print

show test1 on

show test2 on

show tests successful

_____________________ output :

test1 on

test2 on

tests successful

codebot : Great, fun typing and comments now integrated . . .


The next day, you receive a letter. Codebot has already placed it with the day order on your wood based stainless steel table which varnish was as polished as the window facing the Meadow Building


Dear CodeFun Agency,

I have been very much pleased with your recent work.

I will recommend the agency to a few friends.

Keep up the good work.

Mr. Lug Ha,

19, Pineapple street,


County of the Glasspots,

. . .

Planet Earth

. . .

The Universe

Prepared with care

Sitting near a lonely palm tree on the hill overlooking the sea, the breeze was blowing in your direction. It was exquisitely blended made up of sea water, air, sand and a distinct unique smell which natives presume was the country’s very own smell.

The beach and it’s glaring whiteness were an invitation . . .

You looked at the pages codebot handed to you before you left. It was an extract of a series of tutorials with title CYOL . . .

“… The steps are as follows :


Lexical Analysis


Syntax tree generation

The above are concerned with making sense of user input. What follows are optimisations and technical details …. “

The heat was up again, the sun was hitting ferocious rays. It was a nice afternoon.

“… Scanning and lexical analysis used to be a separate process but increased processing speed has made the two words interchangeable. They now refer to the one and same process …  “

more reading .  . .

“… In lexical analysis, the whole file is traversed, each character is examined. What has to be grouped is grouped together. The lines are counted. The column number is noted. Inside in, inside out, the input is examined …”

Near the lonely palm tree the snoring of a tired person could be heard, which blended with the rustling of leaves and the occasional shouting of peddlers who dared make it out at this time . . . before the breeze carried it all.


Dear reader o] wait for next post [o



In need of managing bookmarks online? Try the awesome Bookmark Ninja