/usr/share/doc/maria/examples/object.pn is in maria 1.3.5-4.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | /*
class base { int data; };
class child1: public base { bool flag; };
class child1a: public child1 { enum {d} e; };
class child2: public base { char c; };
*/
typedef struct {
int data;
struct {} kind;
} base_final;
typedef struct {
int data;
union {
struct {
} base;
struct {
bool flag;
struct {} kind;
} child1;
} kind;
} child1_final;
typedef struct {
int data;
union {
struct {
} base;
struct {
bool flag;
union {
struct {
} child1;
struct {
enum {d} e;
} child1a;
} kind;
} child1;
} kind;
} child1a;
typedef struct {
int data;
union {
struct {
} base;
struct {
bool flag;
union {
struct {
} child1;
struct {
enum {d} e;
} child1a;
} kind;
} child1;
} kind;
} child1;
typedef struct {
int data;
union {
struct {
} base;
struct {
char c;
} child2;
} kind;
} child2;
typedef struct {
int data;
union {
struct {
} base;
struct {
bool flag;
struct {} kind;
} child1;
struct {
char c;
} child2;
} kind;
} base;
place base_final base_final: >base_final;
place child1 child1;
place child1a child1a;
place child2 child2;
trans t in {
place base_final: b;
} out {
place child1: is child1 b;
place child1a: is child1a b;
place child2: is child2 b;
};
|