chiark
/
gitweb
/
~mdw
/
sod
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
src/: Split the frontend out into its own separate system.
[sod]
/
src
/
foo.sod
1
/* foo */
2
3
code c : includes {
4
#include "foo.h"
5
}
6
7
code h : includes {
8
#include "sod.h"
9
}
10
11
//[link = SodObject]
12
class Test : SodObject {
13
int x = 0;
14
15
int cur() { return me->test.x; }
16
void inc() { me->test.x++; }
17
void dec() { me->test.x--; }
18
}
19
20
[nick = snd]
21
class Second : Test {
22
void test.dec() { Test *t = SECOND__CONV_TEST(me); t->test.x -= 3; }
23
}