Skip to content

feat: add MQL5 language support (.mq5 / .mqh)#1017

Open
cfournel wants to merge 1 commit into
colbymchenry:mainfrom
cfournel:feat/mql5-language-support
Open

feat: add MQL5 language support (.mq5 / .mqh)#1017
cfournel wants to merge 1 commit into
colbymchenry:mainfrom
cfournel:feat/mql5-language-support

Conversation

@cfournel

Copy link
Copy Markdown

Summary

Grammar provenance

The bundled tree-sitter-mql5.wasm was built from the published npm package tree-sitter-mql5 using npx tree-sitter build --wasm. MQL5's grammar shares Pascal-like node types (declProc, declClass, declIntf, exprCall, etc.), so the extractor closely mirrors the existing Pascal extractor.

Test plan

  • codegraph index on a MetaTrader 5 project directory indexes .mq5 / .mqh files and emits function, class, method, enum, and type_alias nodes.
  • codegraph query <symbol> resolves MQL5 symbols.
  • TypeScript compiles with no errors (tsc --noEmit).
  • Existing test suite passes (npm test).

Relates to #55, #648.

🤖 Generated with Claude Code

Adds MQL5 (.mq5 / .mqh / .mql5) as a supported language using the
tree-sitter-mql5 grammar (https://www.npmjs.com/package/tree-sitter-mql5),
vendored as a WASM binary in src/extraction/wasm/.

Follows the per-language-file architecture introduced in colbymchenry#116:
- src/extraction/languages/mql5.ts — LanguageExtractor config
- Registered in languages/index.ts barrel
- WASM entry + extension map + display name in grammars.ts
- 'mql5' added to the LANGUAGES tuple in types.ts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cfournel

Copy link
Copy Markdown
Author

sorry for the late PR, i ve been busy for weeks

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