Skip to content

Conversation

dorchard
Copy link
Contributor

Also some changes paving the way for the new and improved version...

madgen and others added 13 commits July 22, 2015 15:33
Fortran77 programs can use '*', 'c', or 'C' in first column for comments.
By adding a preprocessing stage I converted every line that starts with
these characters to '!' comments. This solution would break badly
intended modern Fortran code in free form if a keyword or identifier
that starts with 'c' is used.
Resolve conflict in preprocessor by changing the entry function
pre_process and add type annotations to the function since the rest of
the pre_processor is also annotated in upstream.

Conflicts:
	src/Language/Fortran/PreProcess.hs
Dobule precision implementation in the lexer and parser were commented
out. Changed the keywords in lexer and added necessary data type in
Fortran to successfully parse thme.
Fixed form Fortran (aka. 66/77) has continuation lines specified in
column 6 of each lines by putting a character that is not ' ' or '0'
these lines are supposed to be interpreted as part of the statement
above. Since fixed form is not handled explicitly in current version of
language-fortran, preprocessor takes these continuation lines and
appends it to the end of the previous line before sending it to lexer.
Now there is a new interface called pre_process_fixed_form that applies
comment transformation and continuation line elimination on the input
before parsing.
…for interfacespecs which were previously wrong
@dorchard dorchard changed the title various improvements to the pretty printing system better comment/continuation handling and improvements to the pretty printing system Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants