wiki:FortranTranslationIssues

Version 2 (modified by wuwenhao, 7 years ago) ( diff )

--

Fortran Translation Issues

Redesign the Preprocessor

1. Preprocessor

1). Input: Raw char stream read from source files

2). Output: A pp-token stream

2. PP Token Converter

1). Input: A pp-token stream

2). Output: A CIVL-C token stream.

3). Functionality:

Based on a specific programming language (C/CIVL-C or Fortran), the convertor analyzes each pp-token and generates a corresponding !CIVLCToken for each of them.

3. Language Based Parser

1). Input: A CIVLCToken stream

2). Output: A CIVL AST

Meeting Notes for Fortran Front-End

01-08-2019

0). The preprocessor will only create and handle pp-tokens (preprocess tokens).

1). All language specific tokens & keywords should be created after the preprocess procedure.

2). Language grammar based converters (C/CIVL-C & Fortran) should be developed for generating CIVLC tokens from pp-tokens.

3). Different parsers will be used for pars the CIVL-C token stream

Note: See TracWiki for help on using the wiki.