Traqula
    Preparing search index...

    Type Alias ParserRule<Context, NameType, ReturnType, ParamType>

    Type used to declare grammar rules.

    type ParserRule<
        Context = any,
        NameType extends string = string,
        ReturnType = unknown,
        ParamType = any,
    > = {
        impl: (
            def: ImplArgs,
        ) => (context: Context, params: ParamType) => ReturnType;
        name: NameType;
    }

    Type Parameters

    • Context = any
    • NameType extends string = string
    • ReturnType = unknown
    • ParamType = any
    Index

    Properties

    Properties

    impl: (def: ImplArgs) => (context: Context, params: ParamType) => ReturnType
    name: NameType