How thisisthedarshan/pss-langserver works
Project type and purpose
• This is a language-server implementation (an open-source tool) written in TypeScript/Node.js that implements the Language Server Protocol (LSP) for the Accellera Portable Stimulus Standard (PSS).
• Its purpose is to parse PSS source files, build an AST, and expose language-aware features (completion, hover, diagnostics, formatting, go-to) to any LSP-compatible IDE.
File structure
Top-level:
• src/pss-langserver.ts – entry point that sets up the LSP connection and registers feature handlers.
• src/grammar/… – ANTLR4 grammar definitions (.g4) and generated TS lexer/parser/visitor/listener.
• src/parser/… – custom AST nodes, advanced visitors, helper functions, the core parse+AST pipeline.
• src/providers/… – modules for each LSP feature: completion, hover, goto, formatting, semantic tokens, comments.
• src/definitions/… – static definitions for keywords, types, functions, data-structures, semantic tokens.
• scripts & configs – make-exec.js, genbuild.js, ANTLR jar, tsconfig.json, package.json, build/test scripts.
README for additional insights
• It describes planned/in-progress features: Syntax Analysis, Code Completion, Signature Help, Diagnostics, Hover Documentation, Embedded Code Support.
• It confirms NodeJS/TypeScript stack, LSP protocol usage, and IDE setup instructions.