Skip to content

add const keyword #92

@Aavild

Description

@Aavild

example: const int a = 7
typecheck should treat it similarily to a normal var
codegen should use the value rather than the variable. consts will be slightly more efficient since rather than looking up the variables value, the value is already inserted at interpreation/runtime. The ExprEvaluator should not be allowed to use variables, except if they're constants

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions