コード例 #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
ファイル: LexemCursor.cs プロジェクト: mollstam/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);
        }
コード例 #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
ファイル: LexemCursor.cs プロジェクト: mollstam/cottle
 public void Cancel()
 {
     this.State = null;
 }
コード例 #6
0
ファイル: LexemCursor.cs プロジェクト: mollstam/cottle
 public LexemCursor(char character, LexemState state)
 {
     this.Character = character;
     this.State     = state;
 }