Skip to content

Compiler: Extend the parser to ignore top-level objects #1047

Closed

Description

@doc-han

We're extending the acornjs parser to ignore top-level(large json objects) objects in job codes. This is to improve memory usage during compiler transformations

Activity

  1. self-assigned this
    on Oct 6, 2025
  2. moved this from New Issues to In progress in Coreon Oct 6, 2025
  3. josephjclark commented on Oct 7, 2025

    @josephjclark
    Collaborator

    This got too hairy: @doc-han managed to skip tokenisation for the objects in acorn, thus cutting them out of the tree. But printing - reassembling the sourece - gets super difficult because you need to splice the ignored objects back in. Not nice.

    We're abandoning this in favour of easier targets.

  4. moved this from In progress to Done in Coreon Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions