Comments (3)
This works. Something with typescript export import
const p = require('parjs');
let TEST = p.regexp(/a/);
from parjs.
I believe this is addressed by PR 30. Here's how I worked around it:
import {regexp as buggyRegexp} from "parjs";
let regexp: (origRegexp: RegExp) => Parjser<string[]> = buggyRegexp.bind({});
from parjs.
Fixed in #30. Thank you!
from parjs.
Related Issues (20)
- How to set custom "expecting" messages? HOT 3
- `thenPick` Automatically Assumes `source` Consumed Input HOT 2
- The `or` combinators aren't grouping the error messages. HOT 3
- Write a new math example HOT 3
- .pipe() function causes vitest to hang infinitely HOT 3
- Run the tests on precompiled code in CI HOT 3
- How to parse fixed part followed by several optional parts? HOT 2
- Hard failure when soft expected HOT 4
- Not (not) capturing HOT 2
- Publishing new versions is broken on the master branch HOT 1
- docs: add a friendly guide for users
- docs: create documentation explaining how to create new parsers
- refactor: replace overloaded functions with mapped types HOT 1
- Reconsider “quiet” parsers
- refactor: Get rid of namespaces HOT 1
- Debugging feature: textual descriptions for parsers HOT 2
- Debugging feature: a zero key
- docs: add performance comparison to other parsing techniques
- test: assert parser positions after combinator failures
- test: add type level tests HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parjs.