Exemplo n.º 1
0
 public void Parse(ref string[] program)
 {
     string token = ParseUtils.GetToken(ref program);
     WooScript._Log.AddMsg("Found \"" + token + "\" function (null return)");
     WooScript._Log.Indent();
     _NullFunction = WooScript.GetNullFunction(token);
     string openCurl = ParseUtils.GetToken(ref program);
     if (!openCurl.Equals("(", StringComparison.Ordinal))
         new ParseException("Expected \"(\" not \"" + openCurl + "\"");
     _NullFunction.Parse(ref program);
     string closeCurl = ParseUtils.GetToken(ref program);
     if (!closeCurl.Equals(")", StringComparison.Ordinal))
         new ParseException("Expected \")\" not \"" + closeCurl + "\"");
     WooScript._Log.UnIndent();
 }
Exemplo n.º 2
0
        public void Parse(ref string[] program)
        {
            string token = ParseUtils.GetToken(ref program);

            WooScript._Log.AddMsg("Found \"" + token + "\" function (null return)");
            WooScript._Log.Indent();
            _NullFunction = WooScript.GetNullFunction(token);
            string openCurl = ParseUtils.GetToken(ref program);

            if (!openCurl.Equals("(", StringComparison.Ordinal))
            {
                new ParseException("Expected \"(\" not \"" + openCurl + "\"");
            }
            _NullFunction.Parse(ref program);
            string closeCurl = ParseUtils.GetToken(ref program);

            if (!closeCurl.Equals(")", StringComparison.Ordinal))
            {
                new ParseException("Expected \")\" not \"" + closeCurl + "\"");
            }
            WooScript._Log.UnIndent();
        }