Exemple #1
0
 public RCSyntaxException(RCToken token, Exception exception)
     : base(MakeMessage(token, null))
 {
     RCAssert.ArgumentIsNotNull(token, "token");
     RCAssert.ArgumentIsNotNull(exception, "exception");
     Token     = token;
     Exception = exception;
 }
Exemple #2
0
        public static RCValue Parse(string code, out bool fragment)
        {
            RCParser          parser = new RCLParser(Activator);
            RCArray <RCToken> tokens = new RCArray <RCToken> ();

            parser.Lex(code, tokens);
            RCValue result = parser.Parse(tokens, out fragment, canonical: false);

            RCAssert.IsNotNull(result, "The result of parser.Parse() was null.");
            return(result);
        }
Exemple #3
0
 public RCSyntaxException(RCToken token, string details)
     : base(MakeMessage(token, details))
 {
     RCAssert.ArgumentIsNotNull(token, "token");
     Token = token;
 }
Exemple #4
0
 public void Lock()
 {
     RCAssert.ArrayHasNoNulls <T> (this);
     _lock = true;
 }