79d044e9b5
Clean out old data structure formatter. Create stand-alone Parsing class to compose parts of the parser together. Hello, world! Better error recovery on command line errors. Fix bugs from initial run at f77_correct. Allow parentheses on PROGRAM statement. Fix Hollerith scanning. Remove REDIMENSION with good error recovery. Fix new "spaces" parser, clean up calls to it. Fix bugs exposed by in38.f90. Escaped \a is not special to pgf90; get slashes around STRUCTURE name right. Better multi-byte source encoding support in Hollerith. Reformat C++. More work on multi-byte source encoding. Pass 219 tests in f77_correct, with good excuses for the rest. Original-commit: flang-compiler/f18@8a1a0aa2dc Reviewed-on: https://github.com/flang-compiler/f18/pull/25 Tree-same-pre-rewrite: false
19 lines
367 B
C++
19 lines
367 B
C++
#ifndef FORTRAN_PARSER_UNPARSE_H_
|
|
#define FORTRAN_PARSER_UNPARSE_H_
|
|
|
|
#include "characters.h"
|
|
#include <iosfwd>
|
|
|
|
namespace Fortran {
|
|
namespace parser {
|
|
|
|
class Program;
|
|
|
|
/// Convert parsed program to out as Fortran.
|
|
void Unparse(std::ostream &out, const Program &program,
|
|
Encoding encoding = Encoding::UTF8);
|
|
|
|
} // namespace parser
|
|
} // namespace Fortran
|
|
|
|
#endif
|