Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose null_literal as a node #139

Merged
merged 2 commits into from
Aug 18, 2024
Merged

Commits on Aug 3, 2024

  1. Expose null_literal as a node

    We need to expose null literals in parse trees, otherwise, it will not
    be possible to syntactically differentiate between some constructs.
    Example: currently, these two functions yield the same parse tree:
    ```
    fun f() = null
    fun f() { }
    ```
    ```
    source_file
      function_declaration
        simple_identifier
        function_value_parameters
        function_body
    ```
    
    With the changes in this PR, the first function will have a
    `null_literal` in the tree:
    ```
    source_file
      function_declaration
        simple_identifier
        function_value_parameters
        function_body
          null_literal
    ```
    afroozeh committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    3f68c0e View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Configuration menu
    Copy the full SHA
    e72b9d5 View commit details
    Browse the repository at this point in the history