C# Class Ink.InkParser

Afficher le fichier Open project: inkle/ink Class Usage Examples

Méthodes publiques

Méthode Description
CommandLineUserInput ( ) : CommandLineInput
InkParser ( string str, string filenameForMetadata = null, Ink externalErrorHandler = null ) : System
InkParser ( string str, string inkFilename = null, Ink externalErrorHandler = null, InkParser rootParser = null ) : System
OnError ( string message, int index, int lineIndex, bool isWarning ) : void
Parse ( ) : Story

Méthodes protégées

Méthode Description
AddOpenFilename ( string fullFilename ) : void
AuthorWarning ( ) : AuthorWarning
BracketedKnotDeclArguments ( ) : List
BracketedName ( ) : string
Choice ( ) : Choice
ChoiceCondition ( ) : Expression
ChoiceConditionsSpace ( ) : object
ChoiceSingleCondition ( ) : Expression
ConditionExpression ( ) : Expression
ConstDeclaration ( ) : Parsed.Object
ContentText ( ) : Text
ContentTextAllowingEcapeChar ( ) : Text
ContentTextNoEscape ( ) : string
DivertIdentifierWithArguments ( ) : Divert
ElseExpression ( ) : object
EndOfFile ( ) : object
EndOfLine ( ) : object
Expression ( ) : Expression
Expression ( int minimumPrecedence ) : Expression
ExpressionBool ( ) : Number
ExpressionDivertTarget ( ) : Expression
ExpressionFloat ( ) : Number
ExpressionFunctionCall ( ) : Expression
ExpressionFunctionCallArguments ( ) : List
ExpressionInfixRight ( Parsed left, InfixOperator op ) : Expression
ExpressionInt ( ) : Number
ExpressionLiteral ( ) : Expression
ExpressionNot ( ) : string
ExpressionParen ( ) : Expression
ExpressionString ( ) : StringExpression
ExpressionUnary ( ) : Expression
ExpressionVariableName ( ) : Expression
ExternalDeclaration ( ) : ExternalDeclaration
FlowDeclArgument ( ) : FlowBase.Argument
Gather ( ) : Gather
GatherDashes ( ) : object
GenerateStatementLevelRules ( ) : void
Glue ( ) : Parsed.Glue
Identifier ( ) : string
IncludeStatement ( ) : object
InlineConditionalBranches ( ) : List
InlineLogic ( ) : Parsed.Object
InlineLogicOrGlue ( ) : Parsed.Object
InnerConditionalContent ( ) : Conditional
InnerConditionalContent ( Expression initialQueryExpression ) : Conditional
InnerExpression ( ) : Parsed.Object
InnerInlineSequenceObjects ( ) : List
InnerLogic ( ) : Parsed.Object
InnerMultilineSequenceObjects ( ) : List
InnerSequence ( ) : Sequence
InnerSequenceObjects ( ) : List
KnotDeclaration ( ) : FlowDecl
KnotDefinition ( ) : Knot
KnotStitchNoContentRecoveryRule ( ) : object
KnotTitleEquals ( ) : string
Line ( ParseRule inlineRule ) : ParseRule
LineOfMixedTextAndLogic ( ) : List
LogicLine ( ) : Parsed.Object
MixedTextAndLogic ( ) : List
MultiDivert ( ) : List
MultilineConditionalBranches ( ) : List
MultilineWhitespace ( ) : object
Newline ( ) : object
ParseDashNotArrow ( ) : object
ParseDivertArrow ( ) : string
ParseDivertArrowOrTunnelOnwards ( ) : string
ParseTempKeyword ( ) : bool
ParseThreadArrow ( ) : string
PreProcessInputString ( string str ) : string
RegisterBinaryOperator ( string op, int precedence, bool requireWhitespace = false ) : void
RegisterExpressionOperators ( ) : void
RemoveOpenFilename ( string fullFilename ) : void
ReturnStatement ( ) : Return
RuleDidSucceed ( object result, StringParserState stateAtStart, StringParserState stateAtEnd ) : void
SequenceTypeAnnotation ( ) : object
SequenceTypeSymbolAnnotation ( ) : object
SequenceTypeWordAnnotation ( ) : object
SingleDivert ( ) : Divert
SingleMultilineCondition ( ) : ConditionalSingleBranch
SingleMultilineSequenceElement ( ) : ContentList
SkipToNextLine ( ) : object
Spaced ( ParseRule rule ) : ParseRule
StartThread ( ) : Divert
StatementAtLevel ( StatementLevel level ) : object
StatementsAtLevel ( StatementLevel level ) : List
StatementsBreakForLevel ( StatementLevel level ) : object
StitchDeclaration ( ) : FlowDecl
StitchDefinition ( ) : object
Tag ( ) : Parsed.Tag
Tags ( ) : List
TempDeclarationOrAssignment ( ) : Parsed.Object
TrimChoiceContent ( ContentList &content ) : void
VariableDeclaration ( ) : Parsed.Object
Whitespace ( ) : object

Private Methods

Méthode Description
DebugSource ( ) : CommandLineInput
DotSeparatedDivertPathComponents ( ) : List
FilenameIsAlreadyOpen ( string fullFilename ) : bool
ParseInfixOperator ( ) : InfixOperator
TrimEndWhitespace ( List mixedTextAndLogicResults, bool terminateWithSpace ) : void
UserChoiceNumber ( ) : CommandLineInput
UserImmediateModeStatement ( ) : CommandLineInput

Method Details

AddOpenFilename() protected méthode

protected AddOpenFilename ( string fullFilename ) : void
fullFilename string
Résultat void

AuthorWarning() protected méthode

protected AuthorWarning ( ) : AuthorWarning
Résultat AuthorWarning

BracketedKnotDeclArguments() protected méthode

protected BracketedKnotDeclArguments ( ) : List
Résultat List

BracketedName() protected méthode

protected BracketedName ( ) : string
Résultat string

Choice() protected méthode

protected Choice ( ) : Choice
Résultat Choice

ChoiceCondition() protected méthode

protected ChoiceCondition ( ) : Expression
Résultat Expression

ChoiceConditionsSpace() protected méthode

protected ChoiceConditionsSpace ( ) : object
Résultat object

ChoiceSingleCondition() protected méthode

protected ChoiceSingleCondition ( ) : Expression
Résultat Expression

CommandLineUserInput() public méthode

public CommandLineUserInput ( ) : CommandLineInput
Résultat CommandLineInput

ConditionExpression() protected méthode

protected ConditionExpression ( ) : Expression
Résultat Expression

ConstDeclaration() protected méthode

protected ConstDeclaration ( ) : Parsed.Object
Résultat Parsed.Object

ContentText() protected méthode

protected ContentText ( ) : Text
Résultat Ink.Parsed.Text

ContentTextAllowingEcapeChar() protected méthode

protected ContentTextAllowingEcapeChar ( ) : Text
Résultat Ink.Parsed.Text

ContentTextNoEscape() protected méthode

protected ContentTextNoEscape ( ) : string
Résultat string

DivertIdentifierWithArguments() protected méthode

protected DivertIdentifierWithArguments ( ) : Divert
Résultat Divert

ElseExpression() protected méthode

protected ElseExpression ( ) : object
Résultat object

EndOfFile() protected méthode

protected EndOfFile ( ) : object
Résultat object

EndOfLine() protected méthode

protected EndOfLine ( ) : object
Résultat object

Expression() protected méthode

protected Expression ( ) : Expression
Résultat Expression

Expression() protected méthode

protected Expression ( int minimumPrecedence ) : Expression
minimumPrecedence int
Résultat Expression

ExpressionBool() protected méthode

protected ExpressionBool ( ) : Number
Résultat Number

ExpressionDivertTarget() protected méthode

protected ExpressionDivertTarget ( ) : Expression
Résultat Expression

ExpressionFloat() protected méthode

protected ExpressionFloat ( ) : Number
Résultat Number

ExpressionFunctionCall() protected méthode

protected ExpressionFunctionCall ( ) : Expression
Résultat Expression

ExpressionFunctionCallArguments() protected méthode

protected ExpressionFunctionCallArguments ( ) : List
Résultat List

ExpressionInfixRight() protected méthode

protected ExpressionInfixRight ( Parsed left, InfixOperator op ) : Expression
left Parsed
op InfixOperator
Résultat Expression

ExpressionInt() protected méthode

protected ExpressionInt ( ) : Number
Résultat Number

ExpressionLiteral() protected méthode

protected ExpressionLiteral ( ) : Expression
Résultat Expression

ExpressionNot() protected méthode

protected ExpressionNot ( ) : string
Résultat string

ExpressionParen() protected méthode

protected ExpressionParen ( ) : Expression
Résultat Expression

ExpressionString() protected méthode

protected ExpressionString ( ) : StringExpression
Résultat StringExpression

ExpressionUnary() protected méthode

protected ExpressionUnary ( ) : Expression
Résultat Expression

ExpressionVariableName() protected méthode

protected ExpressionVariableName ( ) : Expression
Résultat Expression

ExternalDeclaration() protected méthode

protected ExternalDeclaration ( ) : ExternalDeclaration
Résultat ExternalDeclaration

FlowDeclArgument() protected méthode

protected FlowDeclArgument ( ) : FlowBase.Argument
Résultat FlowBase.Argument

Gather() protected méthode

protected Gather ( ) : Gather
Résultat Gather

GatherDashes() protected méthode

protected GatherDashes ( ) : object
Résultat object

GenerateStatementLevelRules() protected méthode

protected GenerateStatementLevelRules ( ) : void
Résultat void

Glue() protected méthode

protected Glue ( ) : Parsed.Glue
Résultat Parsed.Glue

Identifier() protected méthode

protected Identifier ( ) : string
Résultat string

IncludeStatement() protected méthode

protected IncludeStatement ( ) : object
Résultat object

InkParser() public méthode

public InkParser ( string str, string filenameForMetadata = null, Ink externalErrorHandler = null ) : System
str string
filenameForMetadata string
externalErrorHandler Ink
Résultat System

InkParser() public méthode

public InkParser ( string str, string inkFilename = null, Ink externalErrorHandler = null, InkParser rootParser = null ) : System
str string
inkFilename string
externalErrorHandler Ink
rootParser InkParser
Résultat System

InlineConditionalBranches() protected méthode

protected InlineConditionalBranches ( ) : List
Résultat List

InlineLogic() protected méthode

protected InlineLogic ( ) : Parsed.Object
Résultat Parsed.Object

InlineLogicOrGlue() protected méthode

protected InlineLogicOrGlue ( ) : Parsed.Object
Résultat Parsed.Object

InnerConditionalContent() protected méthode

protected InnerConditionalContent ( ) : Conditional
Résultat Conditional

InnerConditionalContent() protected méthode

protected InnerConditionalContent ( Expression initialQueryExpression ) : Conditional
initialQueryExpression Expression
Résultat Conditional

InnerExpression() protected méthode

protected InnerExpression ( ) : Parsed.Object
Résultat Parsed.Object

InnerInlineSequenceObjects() protected méthode

protected InnerInlineSequenceObjects ( ) : List
Résultat List

InnerLogic() protected méthode

protected InnerLogic ( ) : Parsed.Object
Résultat Parsed.Object

InnerMultilineSequenceObjects() protected méthode

protected InnerMultilineSequenceObjects ( ) : List
Résultat List

InnerSequence() protected méthode

protected InnerSequence ( ) : Sequence
Résultat Sequence

InnerSequenceObjects() protected méthode

protected InnerSequenceObjects ( ) : List
Résultat List

KnotDeclaration() protected méthode

protected KnotDeclaration ( ) : FlowDecl
Résultat FlowDecl

KnotDefinition() protected méthode

protected KnotDefinition ( ) : Knot
Résultat Knot

KnotStitchNoContentRecoveryRule() protected méthode

protected KnotStitchNoContentRecoveryRule ( ) : object
Résultat object

KnotTitleEquals() protected méthode

protected KnotTitleEquals ( ) : string
Résultat string

Line() protected méthode

protected Line ( ParseRule inlineRule ) : ParseRule
inlineRule ParseRule
Résultat ParseRule

LineOfMixedTextAndLogic() protected méthode

protected LineOfMixedTextAndLogic ( ) : List
Résultat List

LogicLine() protected méthode

protected LogicLine ( ) : Parsed.Object
Résultat Parsed.Object

MixedTextAndLogic() protected méthode

protected MixedTextAndLogic ( ) : List
Résultat List

MultiDivert() protected méthode

protected MultiDivert ( ) : List
Résultat List

MultilineConditionalBranches() protected méthode

protected MultilineConditionalBranches ( ) : List
Résultat List

MultilineWhitespace() protected méthode

protected MultilineWhitespace ( ) : object
Résultat object

Newline() protected méthode

protected Newline ( ) : object
Résultat object

OnError() public méthode

public OnError ( string message, int index, int lineIndex, bool isWarning ) : void
message string
index int
lineIndex int
isWarning bool
Résultat void

Parse() public méthode

public Parse ( ) : Story
Résultat Ink.Parsed.Story

ParseDashNotArrow() protected méthode

protected ParseDashNotArrow ( ) : object
Résultat object

ParseDivertArrow() protected méthode

protected ParseDivertArrow ( ) : string
Résultat string

ParseDivertArrowOrTunnelOnwards() protected méthode

protected ParseDivertArrowOrTunnelOnwards ( ) : string
Résultat string

ParseTempKeyword() protected méthode

protected ParseTempKeyword ( ) : bool
Résultat bool

ParseThreadArrow() protected méthode

protected ParseThreadArrow ( ) : string
Résultat string

PreProcessInputString() protected méthode

protected PreProcessInputString ( string str ) : string
str string
Résultat string

RegisterBinaryOperator() protected méthode

protected RegisterBinaryOperator ( string op, int precedence, bool requireWhitespace = false ) : void
op string
precedence int
requireWhitespace bool
Résultat void

RegisterExpressionOperators() protected méthode

protected RegisterExpressionOperators ( ) : void
Résultat void

RemoveOpenFilename() protected méthode

protected RemoveOpenFilename ( string fullFilename ) : void
fullFilename string
Résultat void

ReturnStatement() protected méthode

protected ReturnStatement ( ) : Return
Résultat Ink.Parsed.Return

RuleDidSucceed() protected méthode

protected RuleDidSucceed ( object result, StringParserState stateAtStart, StringParserState stateAtEnd ) : void
result object
stateAtStart StringParserState
stateAtEnd StringParserState
Résultat void

SequenceTypeAnnotation() protected méthode

protected SequenceTypeAnnotation ( ) : object
Résultat object

SequenceTypeSymbolAnnotation() protected méthode

protected SequenceTypeSymbolAnnotation ( ) : object
Résultat object

SequenceTypeWordAnnotation() protected méthode

protected SequenceTypeWordAnnotation ( ) : object
Résultat object

SingleDivert() protected méthode

protected SingleDivert ( ) : Divert
Résultat Divert

SingleMultilineCondition() protected méthode

protected SingleMultilineCondition ( ) : ConditionalSingleBranch
Résultat ConditionalSingleBranch

SingleMultilineSequenceElement() protected méthode

protected SingleMultilineSequenceElement ( ) : ContentList
Résultat ContentList

SkipToNextLine() protected méthode

protected SkipToNextLine ( ) : object
Résultat object

Spaced() protected méthode

protected Spaced ( ParseRule rule ) : ParseRule
rule ParseRule
Résultat ParseRule

StartThread() protected méthode

protected StartThread ( ) : Divert
Résultat Divert

StatementAtLevel() protected méthode

protected StatementAtLevel ( StatementLevel level ) : object
level StatementLevel
Résultat object

StatementsAtLevel() protected méthode

protected StatementsAtLevel ( StatementLevel level ) : List
level StatementLevel
Résultat List

StatementsBreakForLevel() protected méthode

protected StatementsBreakForLevel ( StatementLevel level ) : object
level StatementLevel
Résultat object

StitchDeclaration() protected méthode

protected StitchDeclaration ( ) : FlowDecl
Résultat FlowDecl

StitchDefinition() protected méthode

protected StitchDefinition ( ) : object
Résultat object

Tag() protected méthode

protected Tag ( ) : Parsed.Tag
Résultat Parsed.Tag

Tags() protected méthode

protected Tags ( ) : List
Résultat List

TempDeclarationOrAssignment() protected méthode

protected TempDeclarationOrAssignment ( ) : Parsed.Object
Résultat Parsed.Object

TrimChoiceContent() protected méthode

protected TrimChoiceContent ( ContentList &content ) : void
content ContentList
Résultat void

VariableDeclaration() protected méthode

protected VariableDeclaration ( ) : Parsed.Object
Résultat Parsed.Object

Whitespace() protected méthode

protected Whitespace ( ) : object
Résultat object