<https://www.autoitscript.com/forum/topic/157116-creating-a-simple-script-engine-with-autoit/>
<http://schema.org/text>
"Hello readers of this post   \n\nI'm planning to make a sort of script engine via autoit. \nIt will read text files as 'scripts' with my self made scripting language. \n(but i'm going to make my own extension for the 'scripts') \n\ni'm thinking about \" nameOfFile.GeekScript \" or something... \n\nhow it works: \n\nfiles with the extension \".geekscript\" will be opened with my \"script-engine.exe\" made in autoit. \n\n-script-engine.exe reads the script and breaks it apart in sentences by @CRLF. \n-every sentence will be spitted up to 'words' (or commands) that will be recognized by my script-engine. \n-the engine recognizes if you want to make a variable when it reads a word followed by '=' and after that a string or number (or calculations). \n\nand here i'm stuck, if the script engine reads this for example: \n----------------------------------------------------------------------------- \n\nABC = 456 \nDEF = \"this is a test\" &amp; ABC + 123 \n\n----------------------------------------------------------------------------- \nfor the variable \"DEF\", it must calculate the result for that variable and store that in a dictionary object or something.\ni tough of using autoit's \"execute\" or \"eval\" function to see what the output would be but unfortunately if by coincidence the\nvariable exists in the 'script-engine source code' eval or execute will use that variable...\n \n\nthis is what i mean: \n----------------------------------------------------------------------------- \n\nFunc = 456 \n\n----------------------------------------------------------------------------- \nif i use eval or execute for this string: eval(\"func = 456\") then it would give an error or it won't work. \nsame for variables that exist in the 'script-engine autoit code'... \n\ndoes anybody know if there is a way for calculating strings like eval does, but don't use the variables made in the autoit script? \n\n  "
<https://www.autoitscript.com/forum/topic/157116-creating-a-simple-script-engine-with-autoit/?tab=comments#comment-1138783>