ohm
ohm copied to clipboard
A library and language for building parsers, interpreters, compilers, etc.
It might be nice to have a syntax for specifying lexical binding rules for languages. Currently, the best way to do name resolution is inside an attribute/operation, but this makes...
I'm sorry if this is covered somewhere in the docs, I honestly tried hard to find the answer online... but is it possible to build an Ohm parser into a...
I have added some functions to `Interval` that i found missing in type definitions. I'm kind of a noob to ohm so please check :smile:
:robot: I have created a release *beep* *boop* --- ## [17.2.0](https://github.com/ohmjs/ohm/compare/v17.1.0...v17.2.0) (2024-09-20) ### Features * **extras:** Add stored attributes ([1050ad0](https://github.com/ohmjs/ohm/commit/1050ad0a33e904f1d97da0ef0f6e98eff70c9b5c)) * **types:** Expose Matcher’s grammar prop ([59b17ec](https://github.com/ohmjs/ohm/commit/59b17ec6203b3d56b8e3ac55b7c21fce4f65e30c)) --- This PR...
I'm looking at your error docs on syntax errors here: https://github.com/ohmjs/ohm/blob/main/doc/errors.md#grammar-syntax-error And it uses this example grammar: ```ohm G { start = *x } ``` With this error message >...
Here is an example modified from https://github.com/ohmjs/ohm/blob/main/examples/indentation-sensitive/index.js, that I would expect to work. Note that `Block` has been changed to take`Expr+` instead of a single `Expr`. ``` import {grammar, ExperimentalIndentationSensitive...
I'm trying to use Ohm with Typescript, following the example, but I keep getting an error: ``` TypeError: Cannot read properties of undefined (reading 'createSemantics') 3 | import grammar, {LangSemantics}...
Currently, using any semantic operations/attributes results in an `any`, which introduces a major risk of mistakes and typos into the codebase. I suggest moving the semantic operation/attribute creation process into...
Hi, I'm using Ohm v17.1.0 to build a whitespace-sensitive grammar using the experimental indentation support. I am struggling to get the following MVE grammar to correctly parse the example: ```ohm...