本文整理汇总了C#中Homespun.SimpleToken类的典型用法代码示例。如果您正苦于以下问题:C# SimpleToken类的具体用法?C# SimpleToken怎么用?C# SimpleToken使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SimpleToken类属于Homespun命名空间,在下文中一共展示了SimpleToken类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CaseToken
public CaseToken(SimpleToken tokenInfo)
: base(tokenInfo)
{
}
示例2: Lookup
public static GlobalSymbolInfo Lookup(SimpleToken token)
{
return (GlobalSymbolInfo)globalSymbolTable.Table[token.Text.ToUpper()];
}
示例3: DatOrgxEntry
public DatOrgxEntry(SimpleToken orgxToken)
{
this.orgxToken = orgxToken;
}
示例4: ObjSymbolInfo
public ObjSymbolInfo(IdToken idToken, SimpleToken filenameToken, Expr countExpr, bool needsVarSpace)
: base(idToken)
{
this.filenameToken = filenameToken;
this.countExpr = countExpr;
this.needsVarSpace = needsVarSpace;
}
示例5: DatFileEntry
public DatFileEntry(SimpleToken fileToken, SimpleToken filenameToken, byte[] bytes, int endLineNumber)
{
this.fileToken = fileToken;
this.filenameToken = filenameToken;
this.bytes = bytes;
this.endLineNumber = endLineNumber;
}
示例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;
}
示例7: AddDatOrgEntry
public void AddDatOrgEntry(SimpleToken orgToken, Expr orgExpr, int endLineNumber)
{
datEntryList.Add(new DatOrgEntry(orgToken, orgExpr, endLineNumber));
}
示例8: AddDatOrgxEntry
public void AddDatOrgxEntry(SimpleToken orgxToken)
{
datEntryList.Add(new DatOrgxEntry(orgxToken));
}
示例9: AddDatFitEntry
public void AddDatFitEntry(SimpleToken token, Expr e)
{
datEntryList.Add(new DatFitEntry(token, e));
}
示例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));
}
示例11: AddDatFileEntry
public void AddDatFileEntry(SimpleToken fileToken, SimpleToken filenameToken, byte[] bytes, int endLineNumber)
{
datEntryList.Add(new DatFileEntry(fileToken, filenameToken, bytes, endLineNumber));
}
示例12: AddDatDataEntry
public void AddDatDataEntry(int alignment, int size, Expr dataExpr, Expr countExpr, SimpleToken token)
{
datEntryList.Add(new DatDataEntry(alignment, size, dataExpr, countExpr, token));
}
示例13: ClksetToken
public ClksetToken(SimpleToken tokenInfo)
: base(tokenInfo)
{
}
示例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;
}
示例15: AddDatResEntry
public void AddDatResEntry(SimpleToken resToken, Expr e, int endLineNumber)
{
datEntryList.Add(new DatResEntry(resToken, e, endLineNumber));
}