Ejemplo n.º 1
0
        public void Apply(Parser p, Dictionary <string, Token> a)
        {
            Token identifier = a["Identifier"];

            p.CurrentScript = new Jun.Script {
                Name = identifier.Value, Type = ScriptType.State
            };
            p.AddConstant(identifier.Value, (short)p.GetScriptId(identifier.Value, ScriptType.State));
            p.Scripts.Add(p.CurrentScript);

            p.InScript = true;
        }
Ejemplo n.º 2
0
 public void Apply(Parser p, Dictionary <string, Token> a)
 {
     p.AddConstant(a["Identifier"].Value, a["Value"].Value);
 }