Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace IntegerScanner
- {
- class Delimiter : State
- {
- private State s4, s6;
- public void setTransitions(State s4, State s6)
- {
- this.s4 = s4;
- this.s6 = s6;
- }
- public override State Transition(char c)
- {
- if ('0' <= c && c <= '9')
- return s6;
- else
- return s4;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement