Browse Source

full example for object

develop-theo
Theo Souchon 2 years ago
parent
commit
fa73f35010
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      tests-parsimony/objectExample.c

+ 9
- 9
tests-parsimony/objectExample.c View File

@ -3,26 +3,26 @@
typedef long long int_t;
typedef long double flt_t;
@object()
@object("OBJECT")
struct Integer {
int_t i;
};
@addObject()
// struct Float {
// flt_t _value;
// };
// @addObject()
struct Float {
flt_t _value;
};
@addObject()
struct String {
char *value;
};
@addObject()
// struct Symbol {
// char *name;
// };
// @addObject()
struct Symbol {
char *name;
};
@addObject()
@endObject()

Loading…
Cancel
Save