示例#1
0
文件: LexemCursor.cs 项目: r3c/cottle
        public bool Move(char character, out LexemType type)
        {
            if (this.State != null)
            {
                this.State = this.State.Follow (character);

                if (this.State != null && this.State.Type != LexemType.None)
                {
                    type = this.State.Type;

                    return true;
                }
            }

            type = LexemType.None;

            return false;
        }
示例#2
0
        public bool Move(char character, out LexemType type)
        {
            if (this.State != null)
            {
                this.State = this.State.Follow(character);

                if (this.State != null && this.State.Type != LexemType.None)
                {
                    type = this.State.Type;

                    return(true);
                }
            }

            type = LexemType.None;

            return(false);
        }
示例#3
0
文件: LexemCursor.cs 项目: r3c/cottle
 public void Cancel()
 {
     this.State = null;
 }
示例#4
0
文件: LexemCursor.cs 项目: r3c/cottle
 public LexemCursor(char character, LexemState state)
 {
     this.Character = character;
     this.State = state;
 }
示例#5
0
 public void Cancel()
 {
     this.State = null;
 }
示例#6
0
 public LexemCursor(char character, LexemState state)
 {
     this.Character = character;
     this.State     = state;
 }