-
Notifications
You must be signed in to change notification settings - Fork 74
/
testset_expected_output.txt
83 lines (82 loc) · 2.78 KB
/
testset_expected_output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[] means optional; {} means 1 or more; <> means defined elsewhere
commands are separated by ';' and newlines
command:
declare <name> as <english>
cast <name> into <english>
explain <gibberish>
set or set options
help, ?
quit or exit
english:
function [( <decl-list> )] returning <english>
block [( <decl-list> )] returning <english>
array [<number>] of <english>
[{ const | volatile | noalias }] pointer to <english>
<type>
type:
{[<storage-class>] [{<modifier>}] [<C-type>]}
{ struct | union | enum } <name>
decllist: a comma separated list of <name>, <english> or <name> as <english>
name: a C identifier
gibberish: a C declaration, like 'int *x', or cast, like '(int *)x'
storage-class: extern, static, auto, register
C-type: int, char, float, double, or void
modifier: short, long, signed, unsigned, const, volatile, or noalias
Valid set options (and command line equivalents) are:
options
create (-c), nocreate
prompt, noprompt (-q)
interactive (-i), nointeractive
ritchie (-r), preansi (-p), ansi (-a) or cplusplus (-+)
Current set values are:
nocreate
noprompt
nointeractive
(noritchie)
(nopreansi)
ansi
(nocplusplus)
char *x
Warning: Unsupported in C -- 'reference'
char &x
Warning: Unsupported in C -- 'pointer to member of class'
int X::*foo
Warning: Unsupported in C -- 'pointer to member of class'
class Y *(X::*foo)(arg1, arg2)
int x()
void x(int a)
int *x(char *w, int y)
int *x(char *)
int *x(int)
int *x(char *, int)
int *x(args)
declare x as pointer to char
Warning: Unsupported in C -- 'pointer to member of class'
declare foo as pointer to member of class X int
Warning: Unsupported in C -- 'pointer to member of class'
declare foo as pointer to member of class X function (arg1, arg2) returning pointer to class Y
declare x as function returning pointer to int
declare x as function (args) returning pointer to int
declare x as function (pointer to char) returning pointer to int
declare x as function (pointer to char, int) returning pointer to int
declare x as function (pointer to char, int, float) returning pointer to int
declare x as function (int) returning pointer to int
declare x as const int
declare x as const int
(char *)x
Warning: Unsupported in C -- 'pointer to member of class'
(int X::*)x
(int (*)())x
(int (*)())x
(int (*)(args))x
(int (*)(char *x, int y))x
(int (*)(char *))x
(int (*)(char *, int))x
(int (*)(char *, int, float))x
cast x into pointer to char
Warning: Unsupported in C -- 'pointer to member of class'
cast x into pointer to member of class X int
cast x into pointer to function returning int
cast x into pointer to function (pointer to char) returning int
cast x into pointer to function (pointer to char, int) returning int
cast x into pointer to function (pointer to char, int, float) returning int