Functional context-free grammar! Worked first time! Well... almost.

This commit is contained in:
Woody Folsom
2012-03-18 08:09:53 -04:00
parent 9ce8685b74
commit b431d5efeb
5 changed files with 63 additions and 91 deletions

View File

@@ -15,8 +15,8 @@ public class LevelGrammarFactory {
Variable v_HI_LO = new Variable("HI_LO", LevelComponent.TYPE.HI_LO);
Variable v_LO_PATH = new Variable("LO_PATH", LevelComponent.TYPE.LO_PATH);
Variable v_HI_PATH = new Variable("HI_PATH", LevelComponent.TYPE.HI_PATH);
Variable v_lo_path = new Variable("lo_path", LevelComponent.TYPE.LO_PATH);
Variable v_hi_path = new Variable("hi_path", LevelComponent.TYPE.HI_PATH);
Variable v_lo_path = new Variable("lo_path", LevelComponent.TYPE.FLAT_LO);
Variable v_hi_path = new Variable("hi_path", LevelComponent.TYPE.FLAT_HI);
grammar.addVariable(v_START);
grammar.addVariable(v_LAND_SEGMENT);