Skip to content

Internally replace function call nodes with operator nodes #26

Open
@rkalis

Description

@rkalis

Currently the AST includes nodes of the type FunctionCall, which are things like max(int, int). These "functions" are currently stored inside a global symbol table, but since they are essentially language features, there is no reason for these not to be hardcoded. Hardcoding this should simplify the compiler as there is no need to keep a global symbol table for this.

This also frees up the Function Call construct for when libraries or custom functions will be introduced to the language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cashc-compilerRelates to the cashc compilerrefactorInternal refactoring

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions