本文整理汇总了C#中Homespun.SimpleToken类的典型用法代码示例。如果您正苦于以下问题:C# SimpleToken类的具体用法?C# SimpleToken怎么用?C# SimpleToken使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SimpleToken类属于Homespun命名空间,在下文中一共展示了SimpleToken类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CaseToken
public CaseToken(SimpleToken tokenInfo)
: base(tokenInfo)
{
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Tdop.cs
示例2: Lookup
public static GlobalSymbolInfo Lookup(SimpleToken token)
{
return (GlobalSymbolInfo)globalSymbolTable.Table[token.Text.ToUpper()];
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例3: DatOrgxEntry
public DatOrgxEntry(SimpleToken orgxToken)
{
this.orgxToken = orgxToken;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例4: ObjSymbolInfo
public ObjSymbolInfo(IdToken idToken, SimpleToken filenameToken, Expr countExpr, bool needsVarSpace)
: base(idToken)
{
this.filenameToken = filenameToken;
this.countExpr = countExpr;
this.needsVarSpace = needsVarSpace;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:7,代码来源:Symbols.cs
示例5: DatFileEntry
public DatFileEntry(SimpleToken fileToken, SimpleToken filenameToken, byte[] bytes, int endLineNumber)
{
this.fileToken = fileToken;
this.filenameToken = filenameToken;
this.bytes = bytes;
this.endLineNumber = endLineNumber;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:7,代码来源:Symbols.cs
示例6: DatInstructionEntry
public DatInstructionEntry(IPropInstruction instruction, int cond, Expr eD, Expr eS, bool immediate, int effect, SimpleToken token, int endLineNumber)
{
this.instruction = instruction;
this.cond = cond;
this.eD = eD;
this.eS = eS;
this.immediate = immediate;
this.effect = effect;
this.token = token;
this.endLineNumber = endLineNumber;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:11,代码来源:Symbols.cs
示例7: AddDatOrgEntry
public void AddDatOrgEntry(SimpleToken orgToken, Expr orgExpr, int endLineNumber)
{
datEntryList.Add(new DatOrgEntry(orgToken, orgExpr, endLineNumber));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例8: AddDatOrgxEntry
public void AddDatOrgxEntry(SimpleToken orgxToken)
{
datEntryList.Add(new DatOrgxEntry(orgxToken));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例9: AddDatFitEntry
public void AddDatFitEntry(SimpleToken token, Expr e)
{
datEntryList.Add(new DatFitEntry(token, e));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例10: AddDatInstructionEntry
public void AddDatInstructionEntry(IPropInstruction instruction, int cond, Expr eD, Expr eS, bool immediate, int effect, SimpleToken token, int endLineNumber)
{
datEntryList.Add(new DatInstructionEntry(instruction, cond, eD, eS, immediate, effect, token, endLineNumber));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例11: AddDatFileEntry
public void AddDatFileEntry(SimpleToken fileToken, SimpleToken filenameToken, byte[] bytes, int endLineNumber)
{
datEntryList.Add(new DatFileEntry(fileToken, filenameToken, bytes, endLineNumber));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例12: AddDatDataEntry
public void AddDatDataEntry(int alignment, int size, Expr dataExpr, Expr countExpr, SimpleToken token)
{
datEntryList.Add(new DatDataEntry(alignment, size, dataExpr, countExpr, token));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例13: ClksetToken
public ClksetToken(SimpleToken tokenInfo)
: base(tokenInfo)
{
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Tdop.cs
示例14: Add
public static GlobalSymbolInfo Add(SimpleToken token, ObjectFileSymbolTable objectFileSymbolTable)
{
// New global symbols are added to the global symbol table and to globalList (at the end).
// Existing global symbols are moved to the end of globalList. This is done to duplicate
// PropTool's behavior. Why PropTool does what it does I have no idea.
// 7/24 Finally realized why: when the objects are laid out in this order, all
// the inter-object offsets are positive.
GlobalSymbolInfo gsi = GlobalSymbolTable.Lookup(token);
if (gsi == null)
{
gsi = new GlobalSymbolInfo(token, objectFileSymbolTable);
globalSymbolTable.AddSymbolInfo(gsi);
globalList.Add(gsi);
}
else
{
if (!gsi.AlreadyRead)
throw new ParseException("Circular object reference", token);
for (int i = 0; i < globalList.Count; ++i)
{
if (globalList[i] == gsi)
{
globalList.RemoveAt(i);
globalList.Add(gsi);
break;
}
}
}
return gsi;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:31,代码来源:Symbols.cs
示例15: AddDatResEntry
public void AddDatResEntry(SimpleToken resToken, Expr e, int endLineNumber)
{
datEntryList.Add(new DatResEntry(resToken, e, endLineNumber));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:4,代码来源:Symbols.cs
示例16: DatDataEntry
public DatDataEntry(int alignment, int size, Expr dataExpr, Expr countExpr, SimpleToken token)
{
this.alignment = alignment;
this.size = size;
this.dataExpr = dataExpr;
this.countExpr = countExpr;
this.token = token;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:8,代码来源:Symbols.cs
示例17: AddDatSourceReference
public void AddDatSourceReference(SimpleToken endToken)
{
// Using SourceReference to mark the end of a line of data entries.
datEntryList.Add(new SourceReference(endToken, endToken.LineNumber));
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:5,代码来源:Symbols.cs
示例18: DatFitEntry
public DatFitEntry(SimpleToken token, Expr e)
{
this.token = token;
this.e = e;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:5,代码来源:Symbols.cs
示例19: AddObjSymbol
public void AddObjSymbol(IdToken idToken, SimpleToken filenameToken, Expr countExpr, bool needsVarSpace)
{
AssertUndefined(idToken);
ObjSymbolInfo objSymbolInfo = new ObjSymbolInfo(idToken, filenameToken, countExpr, needsVarSpace);
AddSymbolInfo(objSymbolInfo);
objList.Add(objSymbolInfo);
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:7,代码来源:Symbols.cs
示例20: DatOrgEntry
public DatOrgEntry(SimpleToken orgToken, Expr orgExpr, int endLineNumber)
{
this.orgToken = orgToken;
this.orgExpr = orgExpr;
this.endLineNumber = endLineNumber;
}
开发者ID:ZiCog,项目名称:HomeSpun,代码行数:6,代码来源:Symbols.cs
注:本文中的Homespun.SimpleToken类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论