Changeset c92bdcc for src/Parser


Ignore:
Timestamp:
May 10, 2024, 4:06:07 PM (8 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
0f612d2
Parents:
41c8312
Message:

Updated the rest of the names in src/ (except for the generated files).

Location:
src/Parser
Files:
4 edited
16 moved

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // DeclarationNode.cc --
     7// DeclarationNode.cpp --
    88//
    99// Author           : Rodolfo G. Esteves
     
    1414//
    1515
    16 #include "DeclarationNode.h"
    17 
    18 #include <cassert>                 // for assert, assertf, strict_dynamic_cast
    19 #include <iterator>                // for back_insert_iterator
    20 #include <list>                    // for list
    21 #include <memory>                  // for unique_ptr
    22 #include <ostream>                 // for operator<<, ostream, basic_ostream
    23 #include <string>                  // for string, operator+, allocator, char...
    24 
    25 #include "AST/Attribute.hpp"       // for Attribute
    26 #include "AST/Copy.hpp"            // for shallowCopy
    27 #include "AST/Decl.hpp"            // for Decl
    28 #include "AST/Expr.hpp"            // for Expr
    29 #include "AST/Print.hpp"           // for print
    30 #include "AST/Stmt.hpp"            // for AsmStmt, DirectiveStmt
    31 #include "AST/StorageClasses.hpp"  // for Storage::Class
    32 #include "AST/Type.hpp"            // for Type
    33 #include "Common/CodeLocation.h"   // for CodeLocation
    34 #include "Common/Iterate.hpp"      // for reverseIterate
    35 #include "Common/SemanticError.h"  // for SemanticError
    36 #include "Common/UniqueName.h"     // for UniqueName
    37 #include "Common/utility.h"        // for copy, spliceBegin
    38 #include "Parser/ExpressionNode.h" // for ExpressionNode
    39 #include "Parser/InitializerNode.h"// for InitializerNode
    40 #include "Parser/StatementNode.h"  // for StatementNode
    41 #include "TypeData.h"              // for TypeData, TypeData::Aggregate_t
    42 #include "TypedefTable.h"          // for TypedefTable
     16#include "DeclarationNode.hpp"
     17
     18#include <cassert>                     // for assert, assertf, strict_dynami...
     19#include <iterator>                    // for back_insert_iterator
     20#include <list>                        // for list
     21#include <memory>                      // for unique_ptr
     22#include <ostream>                     // for operator<<, ostream, basic_ost...
     23#include <string>                      // for string, operator+, allocator, ...
     24
     25#include "AST/Attribute.hpp"           // for Attribute
     26#include "AST/Copy.hpp"                // for shallowCopy
     27#include "AST/Decl.hpp"                // for Decl
     28#include "AST/Expr.hpp"                // for Expr
     29#include "AST/Print.hpp"               // for print
     30#include "AST/Stmt.hpp"                // for AsmStmt, DirectiveStmt
     31#include "AST/StorageClasses.hpp"      // for Storage::Class
     32#include "AST/Type.hpp"                // for Type
     33#include "Common/CodeLocation.hpp"     // for CodeLocation
     34#include "Common/Iterate.hpp"          // for reverseIterate
     35#include "Common/SemanticError.hpp"    // for SemanticError
     36#include "Common/UniqueName.hpp"       // for UniqueName
     37#include "Common/Utility.hpp"          // for copy, spliceBegin
     38#include "Parser/ExpressionNode.hpp"  // for ExpressionNode
     39#include "Parser/InitializerNode.hpp"  // for InitializerNode
     40#include "Parser/StatementNode.hpp"    // for StatementNode
     41#include "TypeData.hpp"                // for TypeData, TypeData::Aggregate_t
     42#include "TypedefTable.hpp"            // for TypedefTable
    4343
    4444extern TypedefTable typedefTable;
  • src/Parser/DeclarationNode.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // DeclarationNode.h --
     7// DeclarationNode.hpp --
    88//
    99// Author           : Andrew Beach
     
    1616#pragma once
    1717
    18 #include "ParseNode.h"
     18#include "ParseNode.hpp"
    1919
    2020struct TypeData;
  • src/Parser/ExpressionNode.cpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ExpressionNode.cc --
     7// ExpressionNode.cpp --
    88//
    99// Author           : Peter A. Buhr
     
    1414//
    1515
    16 #include "ExpressionNode.h"
     16#include "ExpressionNode.hpp"
    1717
    1818#include <cassert>                 // for assert
     
    2626#include "AST/Expr.hpp"            // for NameExpr
    2727#include "AST/Type.hpp"            // for Type, LengthFlag, DimentionFlag
    28 #include "Common/SemanticError.h// for SemanticError
    29 #include "Common/utility.h"        // for maybeMoveBuild, maybeBuild, CodeLo...
    30 #include "DeclarationNode.h     // for DeclarationNode
    31 #include "InitializerNode.h     // for InitializerNode
    32 #include "TypeData.h            // for addType, build_basic_type, build_c...
    33 #include "parserutility.h"         // for notZeroExpr
     28#include "Common/SemanticError.hpp"// for SemanticError
     29#include "Common/Utility.hpp"      // for maybeMoveBuild, maybeBuild, CodeLo...
     30#include "DeclarationNode.hpp"     // for DeclarationNode
     31#include "InitializerNode.hpp"     // for InitializerNode
     32#include "TypeData.hpp"            // for addType, build_basic_type, build_c...
     33#include "ParserUtility.hpp"       // for notZeroExpr
    3434
    3535using namespace std;
  • src/Parser/ExpressionNode.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ExpressionNode.h --
     7// ExpressionNode.hpp --
    88//
    99// Author           : Andrew Beach
     
    1616#pragma once
    1717
    18 #include "ParseNode.h"
     18#include "ParseNode.hpp"
    1919
    2020struct InitializerNode;
  • src/Parser/InitializerNode.cpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // InitializerNode.cc --
     7// InitializerNode.cpp --
    88//
    99// Author           : Rodolfo G. Esteves
     
    1414//
    1515
    16 #include "InitializerNode.h"
     16#include "InitializerNode.hpp"
    1717
    18 #include <iostream>                // for operator<<, ostream, basic_ostream
    19 #include <list>                    // for list
    20 #include <string>                  // for operator<<, string
     18#include <iostream>                  // for operator<<, ostream, basic_ostream
     19#include <list>                      // for list
     20#include <string>                    // for operator<<, string
    2121
    22 #include "AST/Expr.hpp"            // for Expr
    23 #include "AST/Init.hpp"            // for Designator, Init, ListInit, Sing...
    24 #include "Common/SemanticError.h"  // for SemanticError
    25 #include "Common/utility.h"        // for maybeBuild
    26 #include "ExpressionNode.h"        // for ExpressionNode
    27 #include "DeclarationNode.h"       // for buildList
     22#include "AST/Expr.hpp"              // for Expr
     23#include "AST/Init.hpp"              // for Designator, Init, ListInit, Sing...
     24#include "Common/SemanticError.hpp"  // for SemanticError
     25#include "Common/Utility.hpp"        // for maybeBuild
     26#include "ExpressionNode.hpp"        // for ExpressionNode
     27#include "DeclarationNode.hpp"       // for buildList
    2828
    2929using namespace std;
  • src/Parser/InitializerNode.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // InitializerNode.h --
     7// InitializerNode.hpp --
    88//
    99// Author           : Andrew Beach
     
    1616#pragma once
    1717
    18 #include "ParseNode.h"
     18#include "ParseNode.hpp"
    1919
    2020struct InitializerNode final : public ParseList<InitializerNode> {
  • src/Parser/ParseNode.cpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ParseNode.cc --
     7// ParseNode.cpp --
    88//
    99// Author           : Rodolfo G. Esteves
     
    1414//
    1515
    16 #include "ParseNode.h"
     16#include "ParseNode.hpp"
    1717using namespace std;
    1818
  • src/Parser/ParseNode.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ParseNode.h --
     7// ParseNode.hpp --
    88//
    99// Author           : Rodolfo G. Esteves
     
    1616#pragma once
    1717
    18 #include <algorithm>               // for move
    19 #include <cassert>                 // for assert, assertf
    20 #include <iosfwd>                  // for ostream
    21 #include <iterator>                // for back_insert_iterator
    22 #include <list>                    // for list
    23 #include <memory>                  // for unique_ptr, pointer_traits
    24 #include <string>                  // for string
     18#include <algorithm>                 // for move
     19#include <cassert>                   // for assert, assertf
     20#include <iosfwd>                    // for ostream
     21#include <iterator>                  // for back_insert_iterator
     22#include <list>                      // for list
     23#include <memory>                    // for unique_ptr, pointer_traits
     24#include <string>                    // for string
    2525
    26 #include "AST/Expr.hpp"            // for Expr, NameExpr LogicalFlag
    27 #include "AST/Fwd.hpp"             // for ptr, Decl, DeclWithType,
    28 #include "AST/Stmt.hpp"            // for Stmt
    29 #include "Common/CodeLocation.h"   // for CodeLocation
    30 #include "Common/SemanticError.h"  // for SemanticError
    31 #include "Common/UniqueName.h"     // for UniqueName
    32 #include "Parser/parserutility.h"  // for maybeBuild, maybeCopy
     26#include "AST/Expr.hpp"              // for Expr, NameExpr, LogicalFlag
     27#include "AST/Fwd.hpp"               // for ptr, Decl, DeclWithType,
     28#include "AST/Stmt.hpp"              // for Stmt
     29#include "Common/CodeLocation.hpp"   // for CodeLocation
     30#include "Common/SemanticError.hpp"  // for SemanticError
     31#include "Common/UniqueName.hpp"     // for UniqueName
     32#include "Parser/ParserUtility.hpp"  // for maybeBuild, maybeCopy
    3333
    3434struct DeclarationNode;
  • src/Parser/ParserTypes.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // parser.hh --
     7// ParserTypes.hpp --
    88//
    99// Author           : Peter A. Buhr
     
    2020
    2121#include <string>
    22 #include "ParseNode.h"
     22#include "ParseNode.hpp"
    2323// External declarations for information sharing between lexer and scanner
    2424class TypedefTable;
  • src/Parser/ParserUtility.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // parserutility.h -- Collected utilities for the parser.
     7// ParserUtility.hpp -- Collected utilities for the parser.
    88//
    99// Author           : Rodolfo G. Esteves
  • src/Parser/RunParser.cpp

    r41c8312 rc92bdcc  
    1818#include "AST/TranslationUnit.hpp"          // for TranslationUnit
    1919#include "Common/CodeLocationTools.hpp"     // for forceFillCodeLocations
    20 #include "Parser/DeclarationNode.h       // for DeclarationNode, buildList
    21 #include "Parser/TypedefTable.h          // for TypedefTable
     20#include "Parser/DeclarationNode.hpp"       // for DeclarationNode, buildList
     21#include "Parser/TypedefTable.hpp"          // for TypedefTable
    2222
    2323// Variables global to the parsing code.
  • src/Parser/StatementNode.cpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // StatementNode.cc -- Transform from parse data-structures to AST data-structures, usually deleting the parse
     7// StatementNode.cpp -- Transform from parse data-structures to AST data-structures, usually deleting the parse
    88//     data-structure after the transformation.
    99//
     
    1515//
    1616
    17 #include "StatementNode.h"
     17#include "StatementNode.hpp"
    1818
    1919#include <cassert>                 // for assert, strict_dynamic_cast, assertf
     
    2323#include "AST/Label.hpp"           // for Label
    2424#include "AST/Stmt.hpp"            // for Stmt, AsmStmt, BranchStmt, CaseCla...
    25 #include "Common/SemanticError.h// for SemanticError
    26 #include "Common/utility.h"        // for maybeMoveBuild, maybeBuild
    27 #include "DeclarationNode.h     // for DeclarationNode
    28 #include "ExpressionNode.h      // for ExpressionNode
    29 #include "parserutility.h"         // for notZeroExpr
     25#include "Common/SemanticError.hpp"// for SemanticError
     26#include "Common/Utility.hpp"      // for maybeMoveBuild, maybeBuild
     27#include "DeclarationNode.hpp"     // for DeclarationNode
     28#include "ExpressionNode.hpp"      // for ExpressionNode
     29#include "ParserUtility.hpp"       // for notZeroExpr
    3030
    3131class Declaration;
  • src/Parser/StatementNode.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // StatementNode.h --
     7// StatementNode.hpp --
    88//
    99// Author           : Andrew Beach
     
    1616#pragma once
    1717
    18 #include "ParseNode.h"
     18#include "ParseNode.hpp"
    1919
    2020struct StatementNode final : public ParseList<StatementNode> {
  • src/Parser/TypeData.cpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // TypeData.cc --
     7// TypeData.cpp --
    88//
    99// Author           : Rodolfo G. Esteves
     
    1414//
    1515
    16 #include "TypeData.h"
    17 
    18 #include <cassert>                 // for assert
    19 #include <ostream>                 // for operator<<, ostream, basic_ostream
    20 
    21 #include "AST/Attribute.hpp"       // for Attribute
    22 #include "AST/Decl.hpp"            // for AggregateDecl, ObjectDecl, TypeDe...
    23 #include "AST/Init.hpp"            // for SingleInit, ListInit
    24 #include "AST/Print.hpp"           // for print
    25 #include "AST/Type.hpp"            // for Type
    26 #include "Common/SemanticError.h"  // for SemanticError
    27 #include "Common/utility.h"        // for splice, spliceBegin
    28 #include "Common/Iterate.hpp"      // for reverseIterate
    29 #include "Parser/ExpressionNode.h" // for ExpressionNode
    30 #include "Parser/StatementNode.h"  // for StatementNode
     16#include "TypeData.hpp"
     17
     18#include <cassert>                   // for assert
     19#include <ostream>                   // for operator<<, ostream, basic_ostream
     20
     21#include "AST/Attribute.hpp"         // for Attribute
     22#include "AST/Decl.hpp"              // for AggregateDecl, ObjectDecl, Type...
     23#include "AST/Init.hpp"              // for SingleInit, ListInit
     24#include "AST/Print.hpp"             // for print
     25#include "AST/Type.hpp"              // for Type
     26#include "Common/SemanticError.hpp"  // for SemanticError
     27#include "Common/Utility.hpp"        // for splice, spliceBegin
     28#include "Common/Iterate.hpp"        // for reverseIterate
     29#include "Parser/ExpressionNode.hpp" // for ExpressionNode
     30#include "Parser/StatementNode.hpp"  // for StatementNode
    3131
    3232class Attribute;
  • src/Parser/TypeData.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // TypeData.h --
     7// TypeData.hpp --
    88//
    99// Author           : Peter A. Buhr
     
    2222#include "AST/CVQualifiers.hpp"                     // for CV
    2323#include "AST/Fwd.hpp"                              // for Type
    24 #include "DeclarationNode.h                      // for DeclarationNode
     24#include "DeclarationNode.hpp"                      // for DeclarationNode
    2525
    2626struct TypeData {
  • src/Parser/TypedefTable.cpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // TypedefTable.cc --
     7// TypedefTable.cpp --
    88//
    99// Author           : Peter A. Buhr
     
    1515
    1616
    17 #include "TypedefTable.h"
     17#include "TypedefTable.hpp"
    1818
    1919#include <cassert>                                                                              // for assert
     
    2323struct TypeData;
    2424
    25 #include "ExpressionNode.h"                                                             // for LabelNode
    26 #include "ParserTypes.h"                                                                // for Token
    27 #include "StatementNode.h"                                                              // for CondCtl, ForCtrl
     25#include "ExpressionNode.hpp"                                                   // for LabelNode
     26#include "ParserTypes.hpp"                                                              // for Token
     27#include "StatementNode.hpp"                                                    // for CondCtl, ForCtrl
    2828// This (generated) header must come late as it is missing includes.
    2929#include "parser.hh"                                                                    // for IDENTIFIER, TYPEDEFname, TYPEGENname
  • src/Parser/TypedefTable.hpp

    r41c8312 rc92bdcc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // TypedefTable.h --
     7// TypedefTable.hpp --
    88//
    99// Author           : Peter A. Buhr
     
    1818#include <string>                                                                               // for string
    1919
    20 #include "Common/ScopedMap.h"                                                   // for ScopedMap
     20#include "Common/ScopedMap.hpp"                                                 // for ScopedMap
    2121
    2222class TypedefTable {
  • src/Parser/lex.ll

    r41c8312 rc92bdcc  
    4444
    4545#include "config.h"                                                                             // configure info
    46 #include "DeclarationNode.h                          // for DeclarationNode
    47 #include "ExpressionNode.h                           // for LabelNode
    48 #include "InitializerNode.h                          // for InitializerNode
    49 #include "ParseNode.h"
    50 #include "ParserTypes.h                              // for Token
    51 #include "StatementNode.h                            // for CondCtl, ForCtrl
    52 #include "TypedefTable.h"
     46#include "DeclarationNode.hpp"                          // for DeclarationNode
     47#include "ExpressionNode.hpp"                           // for LabelNode
     48#include "InitializerNode.hpp"                          // for InitializerNode
     49#include "ParseNode.hpp"
     50#include "ParserTypes.hpp"                              // for Token
     51#include "StatementNode.hpp"                            // for CondCtl, ForCtrl
     52#include "TypedefTable.hpp"
    5353// This (generated) header must come late as it is missing includes.
    5454#include "parser.hh"                                    // generated info
  • src/Parser/module.mk

    r41c8312 rc92bdcc  
    2020
    2121SRC += \
    22        Parser/DeclarationNode.cc \
    23        Parser/DeclarationNode.h \
    24        Parser/ExpressionNode.cc \
    25        Parser/ExpressionNode.h \
    26        Parser/InitializerNode.cc \
    27        Parser/InitializerNode.h \
     22       Parser/DeclarationNode.cpp \
     23       Parser/DeclarationNode.hpp \
     24       Parser/ExpressionNode.cpp \
     25       Parser/ExpressionNode.hpp \
     26       Parser/InitializerNode.cpp \
     27       Parser/InitializerNode.hpp \
    2828       Parser/lex.ll \
    29        Parser/ParseNode.cc \
    30        Parser/ParseNode.h \
     29       Parser/ParseNode.cpp \
     30       Parser/ParseNode.hpp \
    3131       Parser/parser.yy \
    32        Parser/ParserTypes.h \
    33        Parser/parserutility.h \
     32       Parser/ParserTypes.hpp \
     33       Parser/parserutility.hpp \
    3434       Parser/RunParser.cpp \
    3535       Parser/RunParser.hpp \
    36        Parser/StatementNode.cc \
    37        Parser/StatementNode.h \
    38        Parser/TypeData.cc \
    39        Parser/TypeData.h \
    40        Parser/TypedefTable.cc \
    41        Parser/TypedefTable.h
     36       Parser/StatementNode.cpp \
     37       Parser/StatementNode.hpp \
     38       Parser/TypeData.cpp \
     39       Parser/TypeData.hpp \
     40       Parser/TypedefTable.cpp \
     41       Parser/TypedefTable.hpp
    4242
    43 MOSTLYCLEANFILES += Parser/lex.cc Parser/parser.cc Parser/parser.hh Parser/parser.output
     43MOSTLYCLEANFILES += \
     44       Parser/lex.cc \
     45       Parser/parser.cc \
     46       Parser/parser.hh \
     47       Parser/parser.output
  • src/Parser/parser.yy

    r41c8312 rc92bdcc  
    4848using namespace std;
    4949
    50 #include "DeclarationNode.h                          // for DeclarationNode, ...
    51 #include "ExpressionNode.h                           // for ExpressionNode, ...
    52 #include "InitializerNode.h                          // for InitializerNode, ...
    53 #include "ParserTypes.h"
    54 #include "StatementNode.h                            // for build_...
    55 #include "TypedefTable.h"
    56 #include "TypeData.h"
     50#include "DeclarationNode.hpp"                          // for DeclarationNode, ...
     51#include "ExpressionNode.hpp"                           // for ExpressionNode, ...
     52#include "InitializerNode.hpp"                          // for InitializerNode, ...
     53#include "ParserTypes.hpp"
     54#include "StatementNode.hpp"                            // for build_...
     55#include "TypedefTable.hpp"
     56#include "TypeData.hpp"
    5757#include "AST/Type.hpp"                                 // for BasicType, BasicKind
    58 #include "Common/SemanticError.h"                                               // error_str
    59 #include "Common/utility.h"                                                             // for maybeMoveBuild, maybeBuild, CodeLo...
     58#include "Common/SemanticError.hpp"                     // error_str
     59#include "Common/Utility.hpp"                           // for maybeMoveBuild, maybeBuild, CodeLo...
    6060
    6161// lex uses __null in a boolean context, it's fine.
Note: See TracChangeset for help on using the changeset viewer.