AjRools.Expert.Compiler.Parser.ParsePropertyFact C# (CSharp) Method

ParsePropertyFact() private method

private ParsePropertyFact ( string name ) : Fact
name string
return Fact
        private Fact ParsePropertyFact(string name)
        {
            string property = this.ParseName();

            string verb = this.ParseName();

            if (verb != "is")
                throw new LexerException(string.Format("Unexpected '{0}'", verb));

            object value = this.ParseValue();

            this.ParseEndOfLine();

            return new PropertyIsFact(name, property, value);
        }