Skip to content

Commit

Permalink
Comments on design choices
Browse files Browse the repository at this point in the history
  • Loading branch information
mdurero committed Nov 10, 2023
1 parent 4114440 commit e492f35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mlang/irj_parser/irj_lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ rule token = parse
{ check_cr lexbuf; new_line lexbuf;
if is_bol lexbuf then token lexbuf
else error lexbuf "Comment with * must start in the first column" }
(* Quite sure this will be to much: we have end of line comments*)

| blank any* nl
{ check_cr lexbuf; new_line lexbuf;
Expand All @@ -82,13 +81,14 @@ rule token = parse

| '-'? ['0' - '9']+ '.' ['0' - '9']* as f
{ FLOAT (float_of_string f) } (* DONT KEEP THAT *)
(* Probably in order to write a specific function for our number format *)

| ['a'-'z' 'A'-'Z' '0'-'9' '_']+ as s
{ SYMBOL s }

| ['a'-'z' 'A'-'Z' '0'-'9' '_' '-' '.' ';' (*' '*)]+ as s
{ NAME s }
(* Compared to the old lexer, adds _ and . remove space *)
(* Compared to the old lexer, adds _ and . removes space *)

| "/"
{ SLASH }
Expand Down
2 changes: 1 addition & 1 deletion src/mlang/irj_parser/irj_parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ rappel:
event_nb = integer SLASH
rappel_nb = integer SLASH
variable_code = SYMBOL SLASH
change_value = integer SLASH
change_value = integer SLASH (* No decimal value was found in existing files *)
direction = SYMBOL SLASH
penalty_code = INTEGER? SLASH
base_tolerance_legale = INTEGER? SLASH
Expand Down

0 comments on commit e492f35

Please sign in to comment.