Science Fair Projects Ideas - Var'aq

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Var'aq


var'aq is a programming language based loosely upon the grammatical structure of the Klingon language. It was created as part of a speculative exercise in imagining what the computer culture of the fictional Klingon race might be like, and was created by Brian Connors and Chris Pressey c. 2000.

The language is a stack-based language based loosely on PostScript, with aspects of the Lisp language added for handling data structures.

The following keywords are currently supported:

Control Structures

  • ifyes/HIja'chugh
  • ifno/ghobe'chugh
  • choose/wIv
  • ~ (quote/lI'moH)
  • name/pong
  • set/cher
  • repeat/vangqa'
  • eval/chov

Stack Operations

  • pop/woD
  • dup/latlh
  • exch/tam
  • clear/chImmoH
  • remember/qaw
  • forget/qawHa'

Arithmetic Operators

  • add/boq
  • sub/boqHa'
  • mul/boq'egh
  • div/boqHa'egh
  • mod/chuv
  • pow/law'qa'moH
  • rand/mIS
  • add1/wa'boq
  • sub1/wa'boqHa'
  • pi/HeHmI'
  • e/ghurmi'
  • clip/poD
  • smooth/Hab
  • howmuch/'ar

Trig/Log operators

  • sin/joq
  • cos/joqHa'
  • tan/qojmI'
  • atan/qojHa'
  • ln/ghurtaH

Relational Operators

  • All relational operators have been implemented. Thanks to j proctor for null?/pagh'a', negative?/taH'a', int?/HabmIa', and number/mIa'.

I/O Operators

  • The var'aq I/O model remains to be defined, but the basic console I/O functions are now present.

List Operators

  • All list operators are now available

String Operators

  • strtie/tlheghrar
  • streq?/tlheghrap'a'
  • strcut/tlhleghpe'
  • strmeasure/tlheghjuv
  • compose/naQmoH

tlhIngan Hol has names for the numbers and there are also pIqaD (the Klingon writing system) versions of those numbers:

||pagh|| wa'|| cha'|| wej|| loS|| vagh|| jav|| Soch|| chogh|| Hut|| wa'maH||
||0   || 1  || 2   || 3  || 4  || 5   || 6  || 7   || 8    || 9  || 10    ||


Sample Program

Name: hello, world
Dialect: English
Version: 5 June 2000
Comments: Not the canonical var'aq "hello, world";
          actually prints "What do you want, universe?" in Klingon


~ nuqneH { ~ 'u' ~ nuqneH disp disp } name
nuqneH


External links

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice