Now right-click Parsec and select Properties. Then click the Program tab. You should see where to enter a CMD line and Working path. Windows should already have Parsec's path as the CMD line, but you will need to manually enter Parsec's directory for the Working directory. Without the Working dir, Parsec will not be able to find its data file.
The preferred way to open cogscripts with Parsec is to add a link to Parsec in the right-click menu of .cog files. But you can use any method that sends the DOS path of the cog to Parsec on the command line. General instructions for all Windows operating systems are given below.
Go to the Control Panel and open Folder Options. In the dialogue box that appears, select the File Types tab. Find the file type for .cog files. If it's not there, create it. In whatever way is provided, view the Advanced settings for the file type. You should see a box listing the actions that can be performed on cog files (such as open).All right, Parsec should now be configured. Enjoy using it. If you find an error with Parsec or something that needs to be improved, email me. Feedback is appreciated.Create a new action called Parsec and give the path for the Parsec exe in the text box for the Application's path. Directly after Parsec's path, add %1 - without quotation marks (Windows may add the %1 automatically when you accept the settings). That's all you have to enter for the action settings. Now, when you right click on a cogscript file, you should see a link to Parsec in the menu.
- SaberMaster.
for([statement1[, statement1]]; [condition]; statement2[, statement2]) // optional code
This version will likely be the final release of Parsec. Almost all of its bugs have been fixed, but aside from that, I want to rewrite the parser. Parsec was originally written with no model and then I had no experience with writing text parsers. But now that Parsec has matured, I will rewrite it in a more advanced language.
Parsec now recognizes which variables have been assigned, and which variables have been used in the code section. If a variable was assigned but not used, if it was used but never assigned, or if it was not used at all, Parsec will give an appropriate error message explaining the problem.