1 | # snippet types
|
2 |
|
3 | define('SN_DECLS', 1);
|
4 | define('SN_TESTCASE', 2);
|
5 | define('SN_COMMENT', 3);
|
6 | define('SN_RUNREPORT', 4); # report after running a test case
|
7 | define('SN_SOURCE', 5); # uploaded source file (Java or other)
|
8 | define('SN_SOLUTION', 6); # solution tree
|
9 | define('SN_LUA', 7); # A solution in Lua code
|
10 | define('SN_LUA_CHATBOT', 8); # A Lua chat-bot
|
11 | define('SN_LUA_TESTCASE', 9); # A text-to-text test case in Lua
|
12 | #define('SN_LUA_SOLUTION', 10); # A text-to-text solution in Lua (now integrated as plain SN_LUA)
|
13 | define('SN_OBJECT', 11); # An object
|
14 | define('SN_LUA_IMAGE', 12);
|
15 | define('SN_LUA_ANIMATION', 13); # Image plus (optional) animation
|
16 | define('SN_LUA_GUI', 14); # Animation plus keyboard+mouse events
|
17 | define('SN_COMMENT', 15); # A comment on another snippet
|
18 | define('SN_INOUTEXAMPLE', 16); # A conversion example with input+output
|
19 | define('SN_LUA_SYSTEMTEST', 17); # A free-standing test case (not requiring a solution snippet)
|
20 | define('SN_LUA_SERVICEBOT', 18); # A bot in the group chat
|
21 | define('SN_LUA_SUGGESTER', 19); # A suggester for editing snippets
|
22 | define('SN_DOCUMENT', 100); # just a human-readable text
|
23 | define('SN_DOCUMENT_TASK', 101); # human-readable text - task description
|
24 | define('SN_DIRECTORY', 102); # A directory of snippets
|
25 |
|
26 | $luaTypes = array(SN_LUA, SN_LUA_CHATBOT, SN_LUA_TESTCASE, SN_LUA_IMAGE,
|
27 | SN_LUA_ANIMATION, SN_LUA_GUI, SN_LUA_SYSTEMTEST);
|
28 |
|
29 | $types = array(
|
30 | 0 => '?',
|
31 | SN_DOCUMENT => 'Document',
|
32 | SN_DOCUMENT_TASK => 'Task description',
|
33 | SN_LUA => 'Lua code',
|
34 | SN_LUA_CHATBOT => 'Lua code - Chat-bot',
|
35 | SN_LUA_TESTCASE => 'Lua code - Test case',
|
36 | SN_LUA_IMAGE => 'Lua code - Image',
|
37 | SN_LUA_ANIMATION => 'Lua code - Animation',
|
38 | SN_LUA_GUI => 'Lua code - GUI',
|
39 | SN_LUA_SYSTEMTEST => 'Lua code - System test',
|
40 | SN_LUA_SERVICEBOT => 'Lua code - Service bot',
|
41 | SN_LUA_SUGGESTER => 'Lua code - Suggester',
|
42 | SN_DECLS => 'TB declarations',
|
43 | SN_TESTCASE => 'TB test case',
|
44 | SN_COMMENT => 'Comment',
|
45 | SN_RUNREPORT => 'Run report',
|
46 | SN_SOURCE => 'Source file',
|
47 | SN_SOLUTION => 'TB solution tree',
|
48 | SN_COMMENT => 'Comment',
|
49 | SN_INOUTEXAMPLE => 'Input/output example',
|
50 | SN_OBJECT => 'Object',
|
51 | SN_DIRECTORY => 'Directory');
|