本文整理汇总了C#中DGrok.Framework.Token类的典型用法代码示例。如果您正苦于以下问题:C# Token类的具体用法?C# Token怎么用?C# Token使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Token类属于DGrok.Framework命名空间,在下文中一共展示了Token类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ArrayTypeNode
public ArrayTypeNode(Token arrayKeywordNode, Token openBracketNode, ListNode<DelimitedItemNode<AstNode>> indexListNode, Token closeBracketNode, Token ofKeywordNode, AstNode typeNode)
{
_arrayKeywordNode = arrayKeywordNode;
_openBracketNode = openBracketNode;
_indexListNode = indexListNode;
_closeBracketNode = closeBracketNode;
_ofKeywordNode = ofKeywordNode;
_typeNode = typeNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:9,代码来源:GeneratedNodes.cs
示例2: AnonMethodHeadingNode
public AnonMethodHeadingNode(Token methodType, Token openParenthesis, ListNode<DelimitedItemNode<ParameterNode>> parameterList, Token closeParenthesis, Token colon, AstNode returnType)
{
MethodType = methodType;
OpenParenthesis = openParenthesis;
ParameterList = parameterList;
CloseParenthesis = closeParenthesis;
Colon = colon;
ReturnType = returnType;
}
开发者ID:DvdKhl,项目名称:dgrok,代码行数:9,代码来源:GeneratedNodes.cs
示例3: NextToken
public Token NextToken()
{
while(_index < _source.Length && Char.IsWhiteSpace(_source[_index]))
++_index;
if(_index >= _source.Length)
return null;
Match match = NextMatch();
if(match == null)
throw new LexException("Unrecognized character '" + _source[_index] + "'", Location);
string text = _source.Substring(_index, match.Length);
Token result = new Token(match.TokenType, Location, text, match.ParsedText);
_index += match.Length;
return result;
}
开发者ID:DvdKhl,项目名称:dgrok,代码行数:15,代码来源:LexScanner.cs
示例4: GetSourceTokensForInclude
private IEnumerable<Token> GetSourceTokensForInclude(Token token, string baseName)
{
string currentDirectory = token.Location.Directory;
string fileName = _fileLoader.ExpandFileName(currentDirectory, baseName);
string source = _fileLoader.Load(fileName);
Lexer lexer = new Lexer(source, fileName);
return lexer.Tokens;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:8,代码来源:TokenFilter.cs
示例5: VisitToken
public virtual void VisitToken(Token token)
{
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:3,代码来源:Visitor.cs
示例6: ConstantDeclNode
public ConstantDeclNode(Token nameNode, Token colonNode, AstNode typeNode, Token equalSignNode, AstNode valueNode, ListNode<Token> portabilityDirectiveListNode, Token semicolonNode)
{
_nameNode = nameNode;
_colonNode = colonNode;
_typeNode = typeNode;
_equalSignNode = equalSignNode;
_valueNode = valueNode;
_portabilityDirectiveListNode = portabilityDirectiveListNode;
_semicolonNode = semicolonNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:10,代码来源:GeneratedNodes.cs
示例7: ClassOfNode
public ClassOfNode(Token classKeywordNode, Token ofKeywordNode, AstNode typeNode)
{
_classKeywordNode = classKeywordNode;
_ofKeywordNode = ofKeywordNode;
_typeNode = typeNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:6,代码来源:GeneratedNodes.cs
示例8: WhileStatementNode
public WhileStatementNode(Token whileKeywordNode, AstNode conditionNode, Token doKeywordNode, AstNode statementNode)
{
_whileKeywordNode = whileKeywordNode;
_conditionNode = conditionNode;
_doKeywordNode = doKeywordNode;
_statementNode = statementNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:7,代码来源:GeneratedNodes.cs
示例9: UnaryOperationNode
public UnaryOperationNode(Token operatorNode, AstNode operandNode)
{
_operatorNode = operatorNode;
_operandNode = operandNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:5,代码来源:GeneratedNodes.cs
示例10: CaseStatementNode
public CaseStatementNode(Token caseKeywordNode, AstNode expressionNode, Token ofKeywordNode, ListNode<CaseSelectorNode> selectorListNode, Token elseKeywordNode, ListNode<DelimitedItemNode<AstNode>> elseStatementListNode, Token endKeywordNode)
{
_caseKeywordNode = caseKeywordNode;
_expressionNode = expressionNode;
_ofKeywordNode = ofKeywordNode;
_selectorListNode = selectorListNode;
_elseKeywordNode = elseKeywordNode;
_elseStatementListNode = elseStatementListNode;
_endKeywordNode = endKeywordNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:10,代码来源:GeneratedNodes.cs
示例11: TypeSectionNode
public TypeSectionNode(Token typeKeywordNode, ListNode<AstNode> typeListNode)
{
_typeKeywordNode = typeKeywordNode;
_typeListNode = typeListNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:5,代码来源:GeneratedNodes.cs
示例12: TypeHelperNode
public TypeHelperNode(Token typeKeywordNode, Token helperSemikeywordNode, Token openParenthesisNode, AstNode baseHelperTypeNode, Token closeParenthesisNode, Token forKeywordNode, AstNode typeNode, ListNode<VisibilitySectionNode> contentListNode, Token endKeywordNode)
{
_typeKeywordNode = typeKeywordNode;
_helperSemikeywordNode = helperSemikeywordNode;
_openParenthesisNode = openParenthesisNode;
_baseHelperTypeNode = baseHelperTypeNode;
_closeParenthesisNode = closeParenthesisNode;
_forKeywordNode = forKeywordNode;
_typeNode = typeNode;
_contentListNode = contentListNode;
_endKeywordNode = endKeywordNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:12,代码来源:GeneratedNodes.cs
示例13: TypeForwardDeclarationNode
public TypeForwardDeclarationNode(Token nameNode, Token equalSignNode, Token typeNode, Token semicolonNode)
{
_nameNode = nameNode;
_equalSignNode = equalSignNode;
_typeNode = typeNode;
_semicolonNode = semicolonNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:7,代码来源:GeneratedNodes.cs
示例14: TypeDeclNode
public TypeDeclNode(Token nameNode, Token equalSignNode, Token typeKeywordNode, AstNode typeNode, ListNode<Token> portabilityDirectiveListNode, Token semicolonNode)
{
_nameNode = nameNode;
_equalSignNode = equalSignNode;
_typeKeywordNode = typeKeywordNode;
_typeNode = typeNode;
_portabilityDirectiveListNode = portabilityDirectiveListNode;
_semicolonNode = semicolonNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:9,代码来源:GeneratedNodes.cs
示例15: TryFinallyNode
public TryFinallyNode(Token tryKeywordNode, ListNode<DelimitedItemNode<AstNode>> tryStatementListNode, Token finallyKeywordNode, ListNode<DelimitedItemNode<AstNode>> finallyStatementListNode, Token endKeywordNode)
{
_tryKeywordNode = tryKeywordNode;
_tryStatementListNode = tryStatementListNode;
_finallyKeywordNode = finallyKeywordNode;
_finallyStatementListNode = finallyStatementListNode;
_endKeywordNode = endKeywordNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:8,代码来源:GeneratedNodes.cs
示例16: VarSectionNode
public VarSectionNode(Token varKeywordNode, ListNode<VarDeclNode> varListNode)
{
_varKeywordNode = varKeywordNode;
_varListNode = varListNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:5,代码来源:GeneratedNodes.cs
示例17: VisibilityNode
public VisibilityNode(Token strictSemikeywordNode, Token visibilityKeywordNode)
{
_strictSemikeywordNode = strictSemikeywordNode;
_visibilityKeywordNode = visibilityKeywordNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:5,代码来源:GeneratedNodes.cs
示例18: UnitNode
public UnitNode(Token unitKeywordNode, Token unitNameNode, ListNode<Token> portabilityDirectiveListNode, Token semicolonNode, UnitSectionNode interfaceSectionNode, UnitSectionNode implementationSectionNode, InitSectionNode initSectionNode, Token dotNode)
{
_unitKeywordNode = unitKeywordNode;
_unitNameNode = unitNameNode;
_portabilityDirectiveListNode = portabilityDirectiveListNode;
_semicolonNode = semicolonNode;
_interfaceSectionNode = interfaceSectionNode;
_implementationSectionNode = implementationSectionNode;
_initSectionNode = initSectionNode;
_dotNode = dotNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:11,代码来源:GeneratedNodes.cs
示例19: WithStatementNode
public WithStatementNode(Token withKeywordNode, ListNode<DelimitedItemNode<AstNode>> expressionListNode, Token doKeywordNode, AstNode statementNode)
{
_withKeywordNode = withKeywordNode;
_expressionListNode = expressionListNode;
_doKeywordNode = doKeywordNode;
_statementNode = statementNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:7,代码来源:GeneratedNodes.cs
示例20: UnitSectionNode
public UnitSectionNode(Token headerKeywordNode, UsesClauseNode usesClauseNode, ListNode<AstNode> contentListNode)
{
_headerKeywordNode = headerKeywordNode;
_usesClauseNode = usesClauseNode;
_contentListNode = contentListNode;
}
开发者ID:Turbo87,项目名称:DGrok,代码行数:6,代码来源:GeneratedNodes.cs
注:本文中的DGrok.Framework.Token类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论