tartar
/
com.github.adriantodt.tartar.impl
/
GrammarBuilder
common
Grammar
Builder
class
GrammarBuilder
<
T
,
E
> :
GrammarDSL
<
T
,
E
>
Content copied to clipboard
Functions
Functions
build
Link copied to clipboard
common
fun
build
():
Grammar
<
T
,
E
>
Content copied to clipboard
import
Link copied to clipboard
common
open override fun
import
(override:
Boolean
, vararg grammars:
Grammar
<
T
,
E
>)
Content copied to clipboard
Imports all parselets from other grammars.
infix
Link copied to clipboard
common
open override fun
infix
(type:
T
, parselet:
InfixParser
<
T
,
E
>, override:
Boolean
)
Content copied to clipboard
Registers a infix parselets into the grammar.
open override fun
infix
(type:
T
, precedence:
Int
, override:
Boolean
, block:
InfixFunction
<
T
,
E
>)
Content copied to clipboard
Registers a infix parselets into the grammar.
prefix
Link copied to clipboard
common
open override fun
prefix
(type:
T
, parselet:
PrefixParser
<
T
,
E
>, override:
Boolean
)
Content copied to clipboard
Registers a prefix parselets into the grammar.
open override fun
prefix
(type:
T
, override:
Boolean
, block:
PrefixFunction
<
T
,
E
>)
Content copied to clipboard
Registers a prefix parselets into the grammar.