Comparing version 16.3.4 to 16.4.0
@@ -9,2 +9,29 @@ // DO NOT EDIT! This file is autogenerated from scripts/data/index.d.ts.template. | ||
/** | ||
* Constructors for parsing expressions (aka pexprs). (Except for `any` | ||
* and `end`, which are not constructors but singleton instances.) | ||
*/ | ||
const pexprs: { | ||
PExpr: typeof PExpr; | ||
Terminal: typeof Terminal; | ||
Range: typeof Range; | ||
Param: typeof Param; | ||
Alt: typeof Alt; | ||
Extend: typeof Extend; | ||
Splice: typeof Splice; | ||
Seq: typeof Seq; | ||
Iter: typeof Iter; | ||
Star: typeof Star; | ||
Plus: typeof Plus; | ||
Opt: typeof Opt; | ||
Not: typeof Not; | ||
Lookahead: typeof Lookahead; | ||
Lex: typeof Lex; | ||
Apply: typeof Apply; | ||
UnicodeChar: typeof UnicodeChar; | ||
CaseInsensitiveTerminal: typeof CaseInsensitiveTerminal; | ||
any: PExpr; | ||
end: PExpr; | ||
}; | ||
/** | ||
* Instantiate the Grammar defined by source. If specified, namespace is | ||
@@ -102,3 +129,29 @@ * the Namespace to use when resolving external references in the grammar. | ||
interface PExpr {} | ||
class PExpr { | ||
getArity(): number; | ||
isNullable(): boolean; | ||
toString(): string; | ||
toDisplayString(): string; | ||
} | ||
class Terminal extends PExpr {} | ||
class Range extends PExpr {} | ||
class Param extends PExpr {} | ||
class Alt extends PExpr { | ||
terms: PExpr[]; | ||
} | ||
class Extend extends Alt {} | ||
class Splice extends Alt {} | ||
class Seq extends PExpr { | ||
factors: PExpr[]; | ||
} | ||
class Iter extends PExpr {} | ||
class Star extends Iter {} | ||
class Plus extends Iter {} | ||
class Opt extends Iter {} | ||
class Not extends PExpr {} | ||
class Lookahead extends PExpr {} | ||
class Lex extends PExpr {} | ||
class Apply extends PExpr {} | ||
class UnicodeChar extends PExpr {} | ||
class CaseInsensitiveTerminal extends PExpr {} | ||
@@ -105,0 +158,0 @@ /** |
{ | ||
"name": "ohm-js", | ||
"version": "16.3.4", | ||
"version": "16.4.0", | ||
"description": "An object-oriented language for parsing and pattern matching", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/harc/ohm", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1640689
106
23342