-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a system to convert version 1 metadata to version 2
Version 2 contains config-file-like format in a separate file. Dimensions are taken from the Fortran code and converted to standard names while possible. The conversion process generates warnings where it was unable to do a complete conversion. Fixes #171
- Loading branch information
Showing
13 changed files
with
5,056 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""Public API for the fortran_parser library | ||
""" | ||
|
||
__all__ = [ | ||
'fortran_type_definition', | ||
'parse_fortran_file', | ||
'parse_fortran_var_decl' | ||
] | ||
|
||
from parse_fortran_file import parse_fortran_file | ||
from parse_fortran import parse_fortran_var_decl, fortran_type_definition |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
"""Public API for the parse_tools library | ||
""" | ||
__all__ = [ | ||
'CCPPError', | ||
'check_balanced_paren', | ||
'check_cf_standard_name', | ||
'check_dimensions', | ||
'check_fortran_id', | ||
'check_fortran_intrinsic', | ||
'check_fortran_ref', | ||
'check_fortran_type', | ||
'context_string', | ||
'FORTRAN_DP_RE', | ||
'FORTRAN_ID', | ||
'FORTRAN_SCALAR_REF', | ||
'initLog', | ||
'ParseContext', | ||
'ParseInternalError', | ||
'ParseSource', | ||
'ParseSyntaxError', | ||
'ParseObject', | ||
'PreprocStack', | ||
'register_fortran_ddt_name', | ||
'registered_fortran_ddt_name', | ||
'setLogLevel', | ||
'setLogToFile', | ||
'setLogToNull', | ||
'setLogToStdout', | ||
] | ||
|
||
from parse_source import ParseContext, ParseSource | ||
from parse_source import ParseSyntaxError, ParseInternalError | ||
from parse_source import CCPPError, context_string | ||
from parse_object import ParseObject | ||
from parse_checkers import check_fortran_id, FORTRAN_ID | ||
from parse_checkers import FORTRAN_DP_RE | ||
from parse_checkers import check_fortran_ref, FORTRAN_SCALAR_REF | ||
from parse_checkers import check_fortran_intrinsic | ||
from parse_checkers import check_fortran_type, check_balanced_paren | ||
from parse_checkers import registered_fortran_ddt_name | ||
from parse_checkers import register_fortran_ddt_name | ||
from parse_checkers import check_dimensions, check_cf_standard_name | ||
from parse_log import init_log, set_log_level | ||
from parse_log import set_log_to_stdout, set_log_to_null | ||
from parse_log import set_log_to_file | ||
from preprocess import PreprocStack | ||
# End if |
Oops, something went wrong.