Skip to content

Commit

Permalink
Support postfix boz notation in the free form lexer
Browse files Browse the repository at this point in the history
This is common enough that its worth supporting.
  • Loading branch information
Raoul Hidalgo Charman committed Jul 18, 2023
1 parent c1926de commit baa7b3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Language/Fortran/Parser/Free/Lexer.x
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ $hash = [\#]
@label = $digit{1,5}
@name = $letter $alphanumeric*

@binary = b\'$bit+\'
@octal = o\'$octalDigit+\'
@hex = z\'$hexDigit+\'
@binary = b\'$bit+\' | \'$bit+\'b
@octal = o\'$octalDigit+\' | \'$octalDigit+\'o
@hex = [xz]\'$hexDigit+\' | \'$hexDigit+\'[xz]

@digitString = $digit+
@kindParam = (@digitString|@name)
Expand Down

0 comments on commit baa7b3a

Please sign in to comment.