Skip to content

Commit

Permalink
modifiying changelog + removing old commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDaiki committed Sep 16, 2024
1 parent 2f27447 commit 9086c47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
- Preserve formatting of integer literals in the lexer and when pretty-printing to LATEX
([PR #886](https://github.com/jasmin-lang/jasmin/pull/886)).

- Adding support for new integer notations similar to Ocaml and Rust langage integer
- Adding support for new integer notations similar to Ocaml and Rust langage integer :
* Octal support : `0O...`, `0o...`
* Binary support : `0b11101`, `0B11100`
* support for `_` characters for readability : `100_000_00___111`
([PR#897](https://github.com/jasmin-lang/jasmin/pull/897)).

# Jasmin 2024.07.0 — Sophia-Antipolis, 2024-07-09
Expand Down
3 changes: 1 addition & 2 deletions compiler/src/lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ rule main = parse

| '"' (([^'"' '\\']|'\\' _)* as s) '"' { STRING (unescape (L.of_lexbuf lexbuf) s) }

(* Why this is needed *)
| ((*'-'?*) digit+(('_')+ digit+)*) as s
| (digit+(('_')+ digit+)*) as s
{INT s}

| ('0' ['x' 'X'] hexdigit+(('_')+hexdigit+)*) as s
Expand Down

0 comments on commit 9086c47

Please sign in to comment.