Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

[help] Adding unknown function search

$
0
0
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

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>