ICE 3.4.2
[php5-ice-freebsdport.git] / cs / demo / book / lifecycle / Token.cs
blob731faf4efa55ba1e994e504992b43a529b9d5e08
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 using System;
12 class Token
14 public const int TOK_HELP = 0;
15 public const int TOK_EXIT = 1;
16 public const int TOK_SEMI = 2;
17 public const int TOK_LIST = 3;
18 public const int TOK_LIST_RECURSIVE = 4;
19 public const int TOK_CREATE_FILE = 5;
20 public const int TOK_CREATE_DIR = 6;
21 public const int TOK_PWD = 7;
22 public const int TOK_CD = 8;
23 public const int TOK_CAT = 9;
24 public const int TOK_WRITE = 10;
25 public const int TOK_RM = 11;
26 public const int TOK_STRING = 12;
28 internal int type;
29 internal string @value;
31 internal Token(int t)
33 type = t;
34 @value = null;
37 internal Token(int t, string v)
39 type = t;
40 @value = v;