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); }
public IEnumerable <Models.States> get() { var db = new StatesContext(); return(db.States.OrderBy(o => o.Id)); }