Changeset 59c8dff for src/Parser


Ignore:
Timestamp:
Jan 19, 2024, 2:42:58 AM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
f988834
Parents:
8b4faf6
Message:

Draft Implementation for enum position pesudo function (posE). EnumPosExpr is mostly irrelevant for now. It is used in development/code probing and will be removed later

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r8b4faf6 r59c8dff  
    690690} // build_unary_val
    691691
     692ast::Expr * build_enum_pos_expr( const CodeLocation & location, ast::Expr * expr_node ) {
     693        // return nullptr
     694        return new ast::EnumPosExpr( location, std::move( expr_node ) );
     695}
     696
    692697ast::Expr * build_binary_val( const CodeLocation & location,
    693698                OperKinds op,
  • src/Parser/ExpressionNode.h

    r8b4faf6 r59c8dff  
    8383ast::Expr * build_func( const CodeLocation &, ExpressionNode * function, ExpressionNode * expr_node );
    8484ast::Expr * build_compoundLiteral( const CodeLocation &, DeclarationNode * decl_node, InitializerNode * kids );
     85
     86ast::Expr * build_enum_pos_expr( const CodeLocation &, ast::Expr * expr_node );
Note: See TracChangeset for help on using the changeset viewer.