remove NotWorking
[mcs.git] / tests / test-459.cs
blobc4126d44e2c212cc83a06b67efe626a5927baa21
1 using System;
3 class CC {
5 public class IfElseStateMachine {
7 public enum State {
8 START,
9 IF_SEEN,
10 ELSEIF_SEEN,
11 ELSE_SEEN,
12 ENDIF_SEEN,
13 MAX
16 public enum Token {
17 START,
18 IF,
19 ELSEIF,
20 ELSE,
21 ENDIF,
22 EOF,
23 MAX
26 State state;
27 public IfElseStateMachine()
31 public void HandleToken(Token tok)
33 if(tok == Token.IF) {
34 state = (State) tok;
39 public static int Main ()
41 new IfElseStateMachine ().HandleToken (IfElseStateMachine.Token.IF);
42 return 0;