{"library":"apex-parser","type":"library","category":null,"description":"apex-parser is a JavaScript parser specifically designed for the Salesforce Apex language, including support for Apex Triggers, and inline SOQL (Salesforce Object Query Language) and SOSL (Salesforce Object Search Language) queries. Built upon an ANTLR4 grammar, it provides a low-level parse tree representation of Apex code. The current stable version is 2.17.0, with regular updates addressing bug fixes, new Apex/SOQL/SOSL features, and dependency updates. Unlike higher-level tools, this library focuses solely on parsing, offering the raw parse tree for further analysis by downstream tools, rather than providing built-in semantic analysis. A key differentiator is its correct handling of Apex's case-insensitivity through a custom input stream. It is available as an NPM module for Node.js environments and a Maven package for JVMs.","language":"javascript","status":"active","version":"2.17.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install apex-parser","imports":["import { ApexLexer } from 'apex-parser';","import { ApexParser } from 'apex-parser';","import { CaseInsensitiveInputStream } from 'apex-parser';","import { CommonTokenStream } from 'apex-parser';"]},{"cmd":"yarn add apex-parser","imports":[]},{"cmd":"pnpm add apex-parser","imports":[]}],"homepage":null,"github":"https://github.com/nawforce/apex-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/apex-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/apex-parser/compatibility"}}