Making Expect syntax file
Posted: 09 May 2008 14:57
I'm fairly new to RJ TextEd, so I'll apologize up front for any stupid questions I ask in the future.
I have been doing some work with the Expect language, and want to create a syntax file for it. I'm trying to add the capability of folding up my functions in order to save time, but am having a hard time getting it right. The basic synatx of a function (proc) is:
proc <procName> { var-1 [var-2] [var-n] } {
<body of proc/function>
}
As an example here is a very basic proc.
proc rand {n} {
expr {int($n*rand())}
}
Thanks for any help.
I have been doing some work with the Expect language, and want to create a syntax file for it. I'm trying to add the capability of folding up my functions in order to save time, but am having a hard time getting it right. The basic synatx of a function (proc) is:
proc <procName> { var-1 [var-2] [var-n] } {
<body of proc/function>
}
As an example here is a very basic proc.
proc rand {n} {
expr {int($n*rand())}
}
Thanks for any help.