next up previous contents index practicapracticaPP2moodleLHPmoodlepserratacpanmodulospauseperlgoogleetsiiullpcgull
Sig: Código de Parse.yp Sup: Apéndice Ant: Código de aSb.output Err: Si hallas una errata ...


Código de Calc.output

Este apéndice muestra un resumen del fichero Calc.output resultante de traducir mediante yapp con la opción -v el programa Calc.yp.
   1 Conflicts:
   2 ----------
   3 Conflict in state 11 between rule 13 and token '-' resolved as reduce.
   4 Conflict in state 11 between rule 13 and token '^' resolved as shift.
   5 Conflict in state 11 between rule 13 and token '*' resolved as reduce.
   6 Conflict in state 11 between rule 13 and token '+' resolved as reduce.
   7 Conflict in state 11 between rule 13 and token '/' resolved as reduce.
   8 Conflict in state 21 between rule 10 and token '-' resolved as reduce.
   9 Conflict in state 21 between rule 10 and token '^' resolved as shift.
  10 Conflict in state 21 between rule 10 and token '*' resolved as shift.
  11 Conflict in state 21 between rule 10 and token '+' resolved as reduce.
  12 Conflict in state 21 between rule 10 and token '/' resolved as shift.
  13 Conflict in state 22 between rule 9 and token '-' resolved as reduce.
  14 Conflict in state 22 between rule 9 and token '^' resolved as shift.
  15 Conflict in state 22 between rule 9 and token '*' resolved as shift.
  16 Conflict in state 22 between rule 9 and token '+' resolved as reduce.
  17 Conflict in state 22 between rule 9 and token '/' resolved as shift.
  18 Conflict in state 23 between rule 12 and token '-' resolved as reduce.
  19 Conflict in state 23 between rule 12 and token '^' resolved as shift.
  20 Conflict in state 23 between rule 12 and token '*' resolved as reduce.
  21 Conflict in state 23 between rule 12 and token '+' resolved as reduce.
  22 Conflict in state 23 between rule 12 and token '/' resolved as reduce.
  23 Conflict in state 24 between rule 14 and token '-' resolved as reduce.
  24 Conflict in state 24 between rule 14 and token '^' resolved as shift.
  25 Conflict in state 24 between rule 14 and token '*' resolved as reduce.
  26 Conflict in state 24 between rule 14 and token '+' resolved as reduce.
  27 Conflict in state 24 between rule 14 and token '/' resolved as reduce.
  28 Conflict in state 25 between rule 11 and token '-' resolved as reduce.
  29 Conflict in state 25 between rule 11 and token '^' resolved as shift.
  30 Conflict in state 25 between rule 11 and token '*' resolved as reduce.
  31 Conflict in state 25 between rule 11 and token '+' resolved as reduce.
  32 Conflict in state 25 between rule 11 and token '/' resolved as reduce.
  33 Conflict in state 27 between rule 8 and token '-' resolved as shift.
  34 Conflict in state 27 between rule 8 and token '^' resolved as shift.
  35 Conflict in state 27 between rule 8 and token '*' resolved as shift.
  36 Conflict in state 27 between rule 8 and token '+' resolved as shift.
  37 Conflict in state 27 between rule 8 and token '/' resolved as shift.
  38 
  39 Rules:
  40 ------
  41 0: $start -> input $end
  42 1: input -> /* empty */
  43 2: input -> input line
  44 3: line -> '\n'
  45 4: line -> exp '\n'
  46 5: line -> error '\n'
  47 6: exp -> NUM
  48 7: exp -> VAR
  49 8: exp -> VAR '=' exp
  50 9: exp -> exp '+' exp
  51 10: exp -> exp '-' exp
  52 11: exp -> exp '*' exp
  53 12: exp -> exp '/' exp
  54 13: exp -> '-' exp
  55 14: exp -> exp '^' exp
  56 15: exp -> '(' exp ')'
  57 
  58 States:
  59 -------
  60 State 0:
  61 
  62  $start -> . input $end (Rule 0)
  63  $default reduce using rule 1 (input)
  64  input go to state 1
  65 
  66 State 1:
  67 
  68  $start -> input . $end (Rule 0)
  69  input -> input . line (Rule 2)
  70 
  71  $end shift, and go to state 4
  72  '(' shift, and go to state 7
  73  '-' shift, and go to state 2
  74  '\n' shift, and go to state 5
  75  NUM shift, and go to state 6
  76  VAR shift, and go to state 8
  77  error shift, and go to state 9
  78 
  79  exp go to state 3
  80  line go to state 10
  81 
  82 .... # muchos mas estados
  83 
  84 State 27:
  85 
  86  exp -> VAR '=' exp . (Rule 8)
  87  exp -> exp . '+' exp (Rule 9)
  88  exp -> exp . '-' exp (Rule 10)
  89  exp -> exp . '*' exp (Rule 11)
  90  exp -> exp . '/' exp (Rule 12)
  91  exp -> exp . '^' exp (Rule 14)
  92 
  93  '*' shift, and go to state 17
  94  '+' shift, and go to state 13
  95  '-' shift, and go to state 12
  96  '/' shift, and go to state 15
  97  '^' shift, and go to state 16
  98 
  99  $default reduce using rule 8 (exp)
 100 
 101 
 102 Summary:
 103 --------
 104 Number of rules         : 16
 105 Number of terminals     : 14
 106 Number of non-terminals : 4
 107 Number of states        : 28


next up previous contents index practicapracticaPP2moodleLHPmoodlepserratacpanmodulospauseperlgoogleetsiiullpcgull
Sig: Código de Parse.yp Sup: Apéndice Ant: Código de aSb.output Err: Si hallas una errata ...
Casiano Rodríguez León
2006-02-21