Skip to content

refactor: update PLAN.md and remove dead code#333

Merged
ldayton merged 3 commits intomainfrom
docs/update-plan
Jan 17, 2026
Merged

refactor: update PLAN.md and remove dead code#333
ldayton merged 3 commits intomainfrom
docs/update-plan

Conversation

@ldayton
Copy link
Copy Markdown
Owner

@ldayton ldayton commented Jan 17, 2026

Summary

  • Update PLAN.md to reflect phases 4-5 completion
  • Remove 10 unused Parser wrapper/utility methods (175 lines deleted)

Removed methods

Wrappers to Lexer methods, now unused since parse_word() uses tokens:

  • _scan_single_quote
  • _scan_bracket_expression
  • _parse_ansi_c_quote
  • _parse_locale_string

Unused utility methods:

  • _is_word_boundary_before
  • _is_comment_start_context
  • _lookahead_keyword
  • _skip_keyword
  • _lookahead_for_esac_parser
  • _skip_backtick_parser

All 4515 tests pass (Python and JavaScript).

Remove methods that were wrappers to Lexer methods, now unused since
parse_word() uses token-based parsing:
- _scan_single_quote
- _scan_bracket_expression
- _parse_ansi_c_quote
- _parse_locale_string

Remove unused utility methods:
- _is_word_boundary_before
- _is_comment_start_context
- _lookahead_keyword
- _skip_keyword
- _lookahead_for_esac_parser
- _skip_backtick_parser
@ldayton ldayton merged commit 51072d8 into main Jan 17, 2026
1 check passed
@ldayton ldayton deleted the docs/update-plan branch January 17, 2026 15:44
ldayton added a commit that referenced this pull request Mar 25, 2026
Includes fixes for JS backend: constructor defaults (#321), startswith
pos arg (#324), operator precedence (#333), regex escaping (#322),
template literal backticks (#323), destructuring discard (#326),
isinstance primitives (#325, #327), backtick-heredoc (#352), and
UTF-8 encoding (#334).
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