Skip to content

Commit

Permalink
Explicit calc_error name for errors from 'Calculette'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdurero committed Nov 10, 2023
1 parent cc5f4d6 commit debeadf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mlang/irj_parser/irj_parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ primitif:
ENTREESPRIM NL
entrees = list(variable_and_value)
CONTROLESPRIM NL
controles_attendus = list(error_code)
controles_attendus = list(calc_error)
RESULTATSPRIM NL
resultats_attendus = list(variable_and_value)
{ { entrees; controles_attendus; resultats_attendus } }
Expand All @@ -91,7 +91,7 @@ rappels:
| ENTREESRAPP NL
entrees_rappels = list(rappel)
CONTROLESRAPP NL
controles_attendus = list(error_code)
controles_attendus = list(calc_error)
RESULTATSRAPP NL
resultats_attendus = list(variable_and_value)
{ Some { entrees_rappels; controles_attendus; resultats_attendus} }
Expand All @@ -101,7 +101,7 @@ variable_and_value:
| var = SYMBOL SLASH value = value NL { (var, value, Parse_utils.mk_position $sloc) }
| SYMBOL error { error $loc "Missing slash in pair variable/value" }

error_code:
calc_error:
error = SYMBOL NL { (error, Parse_utils.mk_position $sloc) }

rappel:
Expand Down

0 comments on commit debeadf

Please sign in to comment.