Implemented most part of the parser.

TODO:
- Implement parsing the actual variables;
- Implement writing the actual script to a file.