Browse Source

Diagrams

pull/45/head
Jure Šorn 5 years ago
parent
commit
7f235e81a1
3 changed files with 6 additions and 6 deletions
  1. 4
      README.md
  2. 4
      parse.js
  3. 4
      web/script_2.js

4
README.md

@ -1539,7 +1539,7 @@ class MyClass(metaclass=MyMetaClass):
```text
+---------+-------------+
| classes | metaclasses |
+---------|-------------|
+---------+-------------|
| MyClass > MyMetaClass |
| | v |
| object ---> type <+ |
@ -1552,7 +1552,7 @@ class MyClass(metaclass=MyMetaClass):
```text
+---------+-------------+
| classes | metaclasses |
+---------|-------------|
+---------+-------------|
| MyClass | MyMetaClass |
| v | v |
| object <--- type |

4
parse.js

@ -33,7 +33,7 @@ const TOC =
const DIAGRAM_1_A =
'+---------+-------------+\n' +
'| classes | metaclasses |\n' +
'+---------|-------------|\n' +
'+---------+-------------|\n' +
'| MyClass > MyMetaClass |\n' +
'| | v |\n' +
'| object ---> type <+ |\n' +
@ -55,7 +55,7 @@ const DIAGRAM_1_B =
const DIAGRAM_2_A =
'+---------+-------------+\n' +
'| classes | metaclasses |\n' +
'+---------|-------------|\n' +
'+---------+-------------|\n' +
'| MyClass | MyMetaClass |\n' +
'| v | v |\n' +
'| object <--- type |\n' +

4
web/script_2.js

@ -1,7 +1,7 @@
const DIAGRAM_1_A =
'+---------+-------------+\n' +
'| classes | metaclasses |\n' +
'+---------|-------------|\n' +
'+---------+-------------|\n' +
'| MyClass > MyMetaClass |\n' +
'| | v |\n' +
'| object ---> type <+ |\n' +
@ -23,7 +23,7 @@ const DIAGRAM_1_B =
const DIAGRAM_2_A =
'+---------+-------------+\n' +
'| classes | metaclasses |\n' +
'+---------|-------------|\n' +
'+---------+-------------|\n' +
'| MyClass | MyMetaClass |\n' +
'| v | v |\n' +
'| object <--- type |\n' +

Loading…
Cancel
Save