Help for this page

Select Code to Download


  1. or download this
        state = start
        transition = transition-for (state, input.current-char)
    ...
            state = start                           # restart
        }
    
  2. or download this
        state = start
        last-start = input.position
    ...
            state = start                           # restart
            last-start = input.position
        }
    
  3. or download this
        state = start
        memo.last-start = input.position
    ...
                last-start = input.position
            }
        }
    
  4. or download this
        state = start
        input->remember-start-position
    ...
                state = start                               # restart
            }
        }
    
  5. or download this
        state = start
        input->remember-start-position
    ...
                input->remember-start-position
            }
        }
    
  6. or download this
        state = start
        input->remember-starting-position
    ...
                input->remember-starting-position
            }
        }
    
  7. or download this
        state = start
        input->remember-starting-position
    ...
                input->advance                              # advance
            }
        }
    
  8. or download this
        regular-state::process (input) {
            input->remember-accept-position if (self->accepts)  # memo-2
    ...
            state = state->transition-for (input->current-char)
                || error-state                              # move
        }
    
  9. or download this
        regular-state::process (config) {
            if (self->accepts) {                            # memo
    ...
            state = state->transition-for (config->current-input-char)
                || error-state                              # move
        }