{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/22"},{"label":"Linguistic","url":"https://skillfed.io/packages/category/text-processing-linguistic/3"},{"label":"General","url":"https://skillfed.io/packages/category/text-processing-general"}],"enrichment":{"capability":"Lark-js is a command-line tool that generates standalone LALR(1) parsers in Javascript from Lark grammar files, enabling portable grammar-based parsing across Python, Javascript, and Julia.","skillfed_tags":["parser-generator","grammar-compiler"],"use_cases":["Generate a Javascript parser from an existing Lark grammar to embed parsing logic in a web application or Node.js service","Port a Python project that uses Lark to Javascript while reusing the same grammar file unchanged","Build a domain-specific language (DSL) parser in Javascript without hand-coding the parser logic","Create interactive parsing tools or IDE-like features in the browser using Lark's step-by-step parsing capability"],"what_it_does":"Lark-js is a Python package that acts as a command-line compiler for Lark grammars, converting `.lark` grammar files into standalone Javascript parsers. It is a port of the Lark parsing toolkit from Python to Javascript, using LALR(1) parsing to guarantee linear-time performance. The generated parsers build parse trees automatically and work in both Node.js and browsers.\n\nThe package is primarily a build tool: you install it on Python, write or reuse a Lark grammar file (which is language-agnostic EBNF), and run the `lark-js` command to produce a ready-to-use Javascript parser. The grammar syntax is portable across Python, Javascript, and Julia implementations of Lark, so you can share grammar definitions across projects in different languages.","worth_installing":"Yes, if you need to generate a Javascript parser from a Lark grammar and are comfortable with a dormant package. The tool is stable (Beta status, no known vulnerabilities), has low install friction, and solves a specific problem well. The 1551-day gap since last release is a concern for long-term maintenance, but the repository is not archived and the transpilation approach means it inherits Lark's stability. Install only if you actively need grammar-based parsing in Javascript."},"id":"lark-js","links":{"html":"https://skillfed.io/packages/lark-js","md":"https://skillfed.io/packages/lark-js.md","pypi":"https://pypi.org/project/lark-js/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-05-16","license_spdx":null,"license_treatment":"permissive","name":"lark-js","python_support":"unspecified","summary":"An extension to Lark that generates a Javascript standalone"},"popularity":{"monthly_downloads":74014,"position":14890,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.4"}
