示例#1
0
        public override Expression VisitStates([NotNull] StatesContext context)
        {
            if (int.Parse(context.NUMBER().ToString()) != (context.parent as AutomatonContext).state().Length)
            {
                throw new InvalidSyntaxException("Count does not match number of states", context.NUMBER().Symbol);
            }

            return(null);
        }
示例#2
0
        public IEnumerable <Models.States> get()
        {
            var db = new StatesContext();

            return(db.States.OrderBy(o => o.Id));
        }