Added for loops to the expression parser, java style.

Also:
- Added a test case for for
- Fixed Identifiable.id() for the runtime Nodes and added missing elements to the list in Identifiable.java.
- Factored keyword and character consumption into a common function.
This commit is contained in:
TomyLobo
2011-11-22 16:08:15 +01:00
parent f217be0bdf
commit effbf9f79c
7 changed files with 114 additions and 32 deletions

View File

@ -37,13 +37,17 @@ public interface Identifiable {
* CharacterTokens are returned literally
*
* PseudoTokens:
* p - PrefixOperator
* p - UnaryOperator
*
* Invokables:
* Nodes:
* c - Constant
* v - Variable
* f - Function
* l - LValueFunction
* s - Sequence
* I - Conditional
* w - While
* F - For
* </pre>
*/
public abstract char id();