Ignore:
Timestamp:
Apr 4, 2024, 11:33:08 AM (6 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
1cfe640
Parents:
2d82999
Message:

General clean-up in the parser. Removed the commented DeclarationNode::name and added some helper functions to remove duplicate code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r2d82999 r4a72fef  
    8282};
    8383
     84template<typename Node>
     85void extend( Node *& list, Node * value ) {
     86        if ( list ) {
     87                extend( list->next, value );
     88        } else {
     89                list = value;
     90        }
     91}
     92
    8493// Must harmonize with OperName.
    8594enum class OperKinds {
Note: See TracChangeset for help on using the changeset viewer.