Exemplo n.º 1
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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void Cancel()
 {
     this.State = null;
 }
Exemplo n.º 4
0
 public LexemCursor(char character, LexemState state)
 {
     this.Character = character;
     this.State = state;
 }
Exemplo n.º 5
0
 public void Cancel()
 {
     this.State = null;
 }
Exemplo n.º 6
0
 public LexemCursor(char character, LexemState state)
 {
     this.Character = character;
     this.State     = state;
 }