im working on a syntax check for the gsc language, not anything too ridiculous it currently checks for open parentheses, quotations, and brackets.
But im looking to be able to check for unknown functions and im at a loss on how to go about doing it.
for those of you who do not know the language i want to be able to search for a string that has "thread" or "::" (minus quotations of course) in it, and then i want to be able to get the text that follows the "thread" or "::" that stops at a semicolon or comma
example
::tony;
thread tony();
i then would take this text and do this
$bob = StringInStr ( $edittext, "tony" & @crlf & "{")
$bob2 = StringInStr ( $edittext, "tony()" & @crlf & "{")
if $bob = 0 and $bob2 = 0 then; tell user the error
But im looking to be able to check for unknown functions and im at a loss on how to go about doing it.
for those of you who do not know the language i want to be able to search for a string that has "thread" or "::" (minus quotations of course) in it, and then i want to be able to get the text that follows the "thread" or "::" that stops at a semicolon or comma
example
::tony;
thread tony();
i then would take this text and do this
$bob = StringInStr ( $edittext, "tony" & @crlf & "{")
$bob2 = StringInStr ( $edittext, "tony()" & @crlf & "{")
if $bob = 0 and $bob2 = 0 then; tell user the error