Cosmos/source2/Compiler/Cosmos.XSharp/Token.cs
kudzu_cp 2b7279bce9 X#
2012-06-13 14:04:49 +00:00

28 lines
670 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Compiler.XSharp {
public enum TokenType {
// Line based
Comment, LiteralAsm,
//
Register, Label, OpCode, AlphaNum,
// Values
ValueNumberInt,
// Symbols
Assignment, BracketLeft, BracketRight, Plus, Minus,
//
WhiteSpace,
// For now used during scanning while user is typing, but in future could be user methods we have to find etc
Unknown
}
public class Token {
public TokenType Type;
public int SrcPosStart;
public int SrcPosEnd;
public string Value;
}
}