KVIrc scripting language introduction
KVS scripting language introduction

KVS is the KVIrc Scripting language. It was inspired by C++, sh, Perl, PHP and mIRC scripting language implementations. It is a compromise between flexibility and speed, a workaround for many intrinsic problems of an IRC-oriented scripting language.
KVS is semi-interpreted: the execution is done in two main stages. The first stage is the compilation where a syntactic tree is built. The second stage is the real execution and is performed by visiting the tree in the proper order. The syntactic trees are cached in memory so the next executions can jump directly into the second stage. This two-stage approach has been introduced in version 3.0.0, the previous versions of the language used a single-stage on-the-fly interpreter.
KVS allows you to:

  • Implement automated reactions to the events generated by an IRC network
  • Add new complex commands
  • Add interface elements like popups, toolbars, buttons...
  • Add advanced interface elements like complete dialogs or even widgets integrated in KVIrc

KVS contains all the common constructs of structured programming. You will find almost all the C control commands, sh/Perl-like variables, arrays and and functions. There are also some object-oriented characteristics: you will find C++ like objects with constructors, destructors and class inheritance. There are also more exotic concepts like the signal-slots inter-object communication. Obviously you will also find most of the RFC1459 IRC commands and other tools to play with an IRC connection.
I'll try to explain the language by using examples instead of strict syntactic rules.
I have even tried to write the rules... take a look here

And please... forgive me for my fantastic English :) Szymon Stefanek

Index, Language Overview