Output

Mar 24, 08:45 PM


If you wanted a child to say Hello to you. You would give the child a very simple instruction:

Say “Hello”.

There is a tradition to start learning programming with a program that prints “Hello, World!” on the screen.

In Vaklipi this is very easy. All you have to do is issue the command:

Say “Hello, World!”.

as shown in the following demo.


com.aiaioo.VaklipiOutputFixture
program run()
Say “Hello, World!”. Hello, World!
fit.Summary

Run test

Run it.

There! You have just run your first program that ‘did’ anything at all to the world around it, in Vaklipi!

In the demo:

  1. The first column contains the command to run
  2. The second column contains the expected output of the command

Of course, humans have other ways of getting someone to say something. For instance, if I wanted you to say 6, I would ask you:

What is 2 * 3?

That works for Vaklipi as well.


com.aiaioo.VaklipiOutputFixture
program run()
What is 2 * 3? 6.0
fit.Summary

Run test

In Hindi, you would say something like:

“दुनिया प्रणाम” बोलो. (“duniya pranaam” bolo.)


com.aiaioo.VaklipiOutputFixture
program run()
“दुनिया प्रणाम” बोलो. दुनिया प्रणाम
“क्या हाल है” बोलो. क्या हाल है
fit.Summary

Run test


Learn


You can learn programming with Vaklipi in the following pages:

  1. Introduction: Learn about Vaklipi
  2. Declarations: Learn to set the value of a variable
  3. Operators: Learn to do addition, multiplication, division etc.
  4. Conditionals: Learn to take specify the conditions for performing certain steps.
  5. Looping: Learn to repeat steps till some condition is satisfied.
  6. Jumping: Learn to jump to some point in the code.
  7. Functions: Learn to issue an command.
  8. Constructors: Learn to create an object of a certain type.
  9. Selectors: Learn to refer to a real world object.

Cohan Sujay Carlos

Vaklipi,

---

Comment

  1. Cool and forward looking. An intutive natural programming language can have far reaching implications to the productivity levels that can be achieved by the Business Users. Making it work in Regional Languages can add another dimension of productivity gains. Keep up the great work.

    Nagaraj Kulkarni · Mar 25, 01:37 PM · #

Commenting is closed for this article.

---