abstract class AbstractScript extends AbstractPass

Properties

protected Parser $parser from  AbstractPass
protected ParsedText $text from  AbstractPass
protected string $longRegexp
protected string $shortRegexp
protected string $syntaxChar
protected string $tagName

Methods

__construct(Parser $parser, ParsedText $text)

No description

void
parse()

Parse the prepared text from stored parser

void
parseAbstractScript(string $tagName, string $syntaxChar, string $shortRegexp, string $longRegexp)

No description

void
parseLongForm(int $pos)

Parse the long form x^(x)

void
parseShortForm(int $pos)

Parse the short form x^x and x^x^

Details

in AbstractPass at line 29
__construct(Parser $parser, ParsedText $text)

No description

Parameters

Parser $parser
ParsedText $text

in AbstractPass at line 40
abstract void parse()

Parse the prepared text from stored parser

Return Value

void

at line 39
protected void parseAbstractScript(string $tagName, string $syntaxChar, string $shortRegexp, string $longRegexp)

No description

Parameters

string $tagName

Name of the tag used by this pass

string $syntaxChar

Relevant character used by this syntax

string $shortRegexp

Regexp used for the short form syntax

string $longRegexp

Regexp used for the long form syntax

Return Value

void

at line 64
protected void parseLongForm(int $pos)

Parse the long form x^(x)

This syntax is supported by RDiscount

Parameters

int $pos

Position of the first relevant character

Return Value

void

at line 94
protected void parseShortForm(int $pos)

Parse the short form x^x and x^x^

This syntax is supported by most implementations that support superscript

Parameters

int $pos

Position of the first relevant character

Return Value

void