mirror of
https://github.com/correl/mercenary.git
synced 2024-11-23 19:19:51 +00:00
Correl Roush
1cf438da9b
* alias calls work, and internal aliases can be registered through the script manager * Updated the build system to use cmake. Makes things so much nicer. git-svn-id: file:///srv/svn/ircclient/trunk@5 a9804ffe-773b-11dd-bd7c-89c3ef1d2733
20 lines
No EOL
423 B
Text
20 lines
No EOL
423 B
Text
; Hey, here's some test code
|
|
set name Correl
|
|
%first = Correl
|
|
%middle = Joseph
|
|
%name = %first $&
|
|
%middle Roush
|
|
echo Hello, %name!
|
|
alias dostuff {
|
|
; Not very useful, but good for testing the parser!
|
|
var %b = 42
|
|
%b = $calc(%b * 3)
|
|
return %b;
|
|
}
|
|
alias -l dosomethingelse {
|
|
; Useless local alias!
|
|
echo -s Busy doing nothing
|
|
}
|
|
dostuff that nobody will see
|
|
dosomethingelse entirely
|
|
donothing because this alias doesn't exist |