Skip to content

Use cst#129

Open
myfreess wants to merge 6 commits into
masterfrom
use_cst
Open

Use cst#129
myfreess wants to merge 6 commits into
masterfrom
use_cst

Conversation

@myfreess
Copy link
Copy Markdown
Collaborator

@myfreess myfreess commented May 6, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3a75e7a20c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread handrolled_parser/parser.mbt Outdated
Comment thread handrolled_parser/parser.mbt Outdated
@myfreess myfreess force-pushed the use_cst branch 3 times, most recently from daef7d4 to 2f655d0 Compare May 9, 2026 06:37
@myfreess
Copy link
Copy Markdown
Collaborator Author

myfreess commented May 9, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f655d0afa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread syntax/util/compact.mbt Outdated
bindings=acc,
body=cont,
loc=Location::merge(loc, loc_of_expression(cont)),
fn_locs=fn_locs.rev(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep local function keyword locations in binding order

When two or more local fn statements are compacted into a LetRec, acc is already in source order because it is built with the same add sequence used by the previous implementation for bindings; reversing only fn_locs makes the keyword-location list run opposite to bindings. For a block like fn f() {}; fn g() {}; body, CST consumers that align fn_locs with bindings will associate g's fn location with f and vice versa.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant