[flang] Take flang-compiler/f18#2 on unparsing, now using the new parse tree walker.
authorpeter klausler <pklausler@nvidia.com>
Thu, 1 Mar 2018 00:56:10 +0000 (16:56 -0800)
committerpeter klausler <pklausler@nvidia.com>
Tue, 13 Mar 2018 23:32:09 +0000 (16:32 -0700)
commit79d044e9b55d0f45329f6502ab11b41459b7aa91
tree6c29eef83adf89d69a8bb0a52918a0e9141b47c3
parent6fab60d6db1ddb137ee383622ba186023b038dcd
[flang] Take flang-compiler/f18#2 on unparsing, now using the new parse tree walker.

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@8a1a0aa2dc5b4ba3fba2116d278affb51857ffb7
Reviewed-on: https://github.com/flang-compiler/f18/pull/25
Tree-same-pre-rewrite: false
28 files changed:
flang/lib/parser/CMakeLists.txt
flang/lib/parser/basic-parsers.h
flang/lib/parser/characters.cc [new file with mode: 0644]
flang/lib/parser/characters.h
flang/lib/parser/grammar.h
flang/lib/parser/idioms.cc
flang/lib/parser/idioms.h
flang/lib/parser/indirection.h
flang/lib/parser/message.cc
flang/lib/parser/message.h
flang/lib/parser/parse-state.h
flang/lib/parser/parse-tree-visitor.h
flang/lib/parser/parse-tree.cc
flang/lib/parser/parse-tree.h
flang/lib/parser/parsing.cc [new file with mode: 0644]
flang/lib/parser/parsing.h [new file with mode: 0644]
flang/lib/parser/prescan.cc
flang/lib/parser/prescan.h
flang/lib/parser/provenance.cc
flang/lib/parser/provenance.h
flang/lib/parser/token-parsers.h
flang/lib/parser/token-sequence.cc
flang/lib/parser/token-sequence.h
flang/lib/parser/unparse.cc
flang/lib/parser/unparse.h
flang/lib/semantics/make-types.cc
flang/tools/f18/CMakeLists.txt
flang/tools/f18/f18.cc