Skip to content

Commit d0e467c

Browse files
author
rasmussn
committed
Removed fixed-disamb rule because the ambiguity has been fixed in the grammar. The ambiguity was between free-form comments and statements.
1 parent d09e138 commit d0e467c

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

fortran/trans/fixed-to-free.str

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ signature
1111

1212
ppStmtBlock : Stmt * FollowLines -> ppStmtBlock
1313

14-
// For ambiguities
15-
amb : list -> choice
16-
1714

1815
strategies //=================START OF STRATEGIES============================
1916

2017
io-fixed-to-free =
2118
io-wrap(fixed-to-free)
2219

2320
fixed-to-free =
24-
// outermost(fixed-disamb)
2521
innermost(fixed-to-free-comments)
2622
; innermost(fixed-to-free-form)
2723
; outermost(fixed-to-free-continuation)
@@ -30,21 +26,6 @@ strategies //=================START OF STRATEGIES============================
3026

3127
rules //========================START OF RULES===============================
3228

33-
/**
34-
* Remove ambiguity between statements containing all whitespace and blank lines.
35-
* - replaces blank "statement" with a blank line
36-
*/
37-
fixed-disamb =
38-
? amb([Stmt(_,_,_,_), BlankLine(ws, eol)])
39-
; ! BlankLine(ws, eol)
40-
<+ ? amb([Stmt(_,_,_,_), FreeFormComment(ws,ch,str,eol)])
41-
; ! FreeFormComment(ws,ch,str,eol)
42-
<+ ? amb([BlankLine(ws, eol), Stmt(_,_,_,_)])
43-
; ! BlankLine(ws, eol)
44-
<+ ? amb([BlankLine(ws, eol), Continuation(_,_,_,_)]) /* DOS blank lines with spaces */
45-
; ! BlankLine(ws, eol)
46-
47-
4829
/**
4930
* Change comment character to '!'
5031
*/

0 commit comments

Comments
 (0)