Hi! My name is Bogdan Nikolaev, i'm from Russia, and my age == 14 years.
I write interpreter of a simple automatization scripting language, with my syntax based on basic.
Interpreter written on Delphi.
I create this language because i need simple and powerful language for automatization routine(for example build scripts), and i make my own language. Here is some language features:
- Two comparsion condition - if and if not
- Some winapi functions implemented(messagebox and etc)
- Multimedia api
- Interpreter in real time can deattach console, and transform to UI application
- Interpreter can run other script inside current executed script
- Intrepreter can run in interactive mode - in this case NGC is CMD or Bash analog
- Full file IO - reading, writing, appending
- INI reading and writing - very userful for storing script configuration(for example configuration of build script)
- Dynamic type system - you can create variables and set any type to it
- Calling functions from dll - make's NGC functions is infinite
- Math functions - add, sub, div, mul
- String functions - find, cut and pos(possible create parsers)
Here is some examples on NGC:
Print "Hello world":
println 'Hello, world!'
Advanced Hello world:
varcreate 'welcomestr'
varset 'welcomestr', 'Hello, world!'
println $welcomestr
Get user input:
varcreate 'username'
quest
varset 'username', 'Hello, '
strconcat $username, answer
println $username
Run other script:
runscript 'script.ngs'
Call dll function(must be stdcall and no parameters):
dllcall 'mydll.dll', 'myfunction'
Play sound:
playsound 'mysound.wav', true
Run other programm:
exec 'cc', 'mysource.c'
Currently NGC is under development, i log developing in twitter and in this theme. My twitter:
http://twitter.com/mono_bogdan
This is not advert, i want to show my project to other users, from other countries.
Thanks