Rewrite of class structure to conditional blocks. Preperations to allow variable declearation inside the conditions.
Remove clear_children_state method from block.cpp commit a2bfbdd4d2f607adc4b5162eb0b4af4099abc957. Some header cleanups done aswell.
Created system for declaring variables in initlializer statment of if, while, for and foreach
Updated test for while loop
Added test for declaration in conditions
Restructuring in parse framework
- Create new parse_and_run type for objects which are parsed and then later run, like pragmas and blocks.
- parse_and_run are not identifiers, but they may have a name and can be added to a namespace
- if, while, for and foreach are made parse and runs
- Create global namespaces for blocks, templates and texts which contain types which each of the should accept
- The conditional blocks are adapted to be run both inside TEXT/TEMPLATE and blocks. CONDITION and LOOP removed from template.
- Pragmas are used in text blocks, TEMPLATE and SCENE goes out.
- OOified parsing and block.cpp and text.cpp
Merge pull request #43 from atlesn/master

Restructuring to allow more functionality in templates