22d2d3a240e1cecacbf5282e4526aed2f09c7528
[erdiag.git] / example.html
1 <div id="test"></div>
2
3 <script src="parser.js"></script>
4 <script>
5 let er =
6 new ErDiags(`
7 [Musician]
8 #id (integer)
9 name
10 band
11 role (varchar not null)
12
13 [Instrument]
14 #name
15 family (varchar not null default "Brass")
16
17 [Piano]
18 type
19
20 [Guitar]
21 type
22
23 {Play}
24 Musician +
25 Instrument *
26 --
27 event
28
29 is_a
30 Instrument Piano Guitar
31 `);
32 er.drawMcd("test");
33 </script>