Изучение конечных автоматов без памяти, способов определения КА – канонического, графового и табличного, методов построения недетерминированного КА по системе регулярных выражений, страница 10

    state.setArc(-2,"");

    state.setArc(2," ");

   lexAcceptors[0].setState(2,state);

   state=new faState(2);

    state.setArc(13,"0123456789");

    state.setArc(14,"r");

   lexAcceptors[0].setState(3,state);

   state=new faState(2);

    state.setArc(13,"0123456789");

    state.setArc(15,"a");

   lexAcceptors[0].setState(4,state);

   state=new faState(1);

    state.setArc(13,"0123456789");

   lexAcceptors[0].setState(5,state);

   state=new faState(1);

    state.setArc(-3,"");

   lexAcceptors[0].setState(6,state);

   state=new faState(3);

    state.setArc(-4,"");

    state.setArc(7,"0123456789");

    state.setArc(16,",");

   lexAcceptors[0].setState(7,state);

   state=new faState(1);

    state.setArc(-5,"");

   lexAcceptors[0].setState(8,state);

   state=new faState(2);

    state.setArc(-6,"");

    state.setArc(17,"*");

   lexAcceptors[0].setState(9,state);

   state=new faState(1);

    state.setArc(-6,"");

   lexAcceptors[0].setState(10,state);

   state=new faState(1);

    state.setArc(10,"-");

   lexAcceptors[0].setState(11,state);

   state=new faState(1);

    state.setArc(-7,"");

   lexAcceptors[0].setState(12,state);

   state=new faState(1);

    state.setArc(18,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя0123456789");

   lexAcceptors[0].setState(13,state);

   state=new faState(1);

    state.setArc(19,"u");

   lexAcceptors[0].setState(14,state);

   state=new faState(1);

    state.setArc(20,"l");

   lexAcceptors[0].setState(15,state);

   state=new faState(1);

    state.setArc(21,"0123456789");

   lexAcceptors[0].setState(16,state);

   state=new faState(1);

    state.setArc(-8,"");

   lexAcceptors[0].setState(17,state);

   state=new faState(2);

    state.setArc(-9,"");

    state.setArc(18,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя0123456789");

   lexAcceptors[0].setState(18,state);

   state=new faState(1);

    state.setArc(22,"e");

   lexAcceptors[0].setState(19,state);

   state=new faState(1);

    state.setArc(23,"s");

   lexAcceptors[0].setState(20,state);

   state=new faState(2);

    state.setArc(-10,"");

    state.setArc(21,"0123456789");

   lexAcceptors[0].setState(21,state);

   state=new faState(2);

    state.setArc(-11,"");

    state.setArc(24,"e");

   lexAcceptors[0].setState(22,state);

   state=new faState(1);

    state.setArc(25,"e");

   lexAcceptors[0].setState(23,state);

   state=new faState(1);

    state.setArc(-12,"");

   lexAcceptors[0].setState(24,state);

   state=new faState(1);

    state.setArc(-11,"");

   lexAcceptors[0].setState(25,state);

  lexAcceptors[1]=new fAutomat(1,3,rdr);

   state=new faState(2);

    state.setArc(1,"");

    state.setArc(2,"\"");

   lexAcceptors[1].setState(0,state);

   state=new faState(2);

    state.setArc(-2,"\"");

    state.setArc(1,"");

   lexAcceptors[1].setState(1,state);

   state=new faState(1);

    state.setArc(-3,"");

   lexAcceptors[1].setState(2,state);

  lexAcceptors[2]=new fAutomat(2,3,rdr);

   state=new faState(2);

    state.setArc(1,"");

    state.setArc(2,"*");

   lexAcceptors[2].setState(0,state);

   state=new faState(2);

    state.setArc(-2,"*");

    state.setArc(1,"");

   lexAcceptors[2].setState(1,state);

   state=new faState(1);

    state.setArc(-3,"");

   lexAcceptors[2].setState(2,state);

  lexAcceptors[3]=new fAutomat(3,3,rdr);