-
Notifications
You must be signed in to change notification settings - Fork 2
/
metacirc.py
51 lines (38 loc) · 1.06 KB
/
metacirc.py
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
##################################################
## metacircular
##################################################
metaL = vm['metaL'] = vm['MODULE'] = Module(MODULE)
metaL['TITLE'] = vm['TITLE']
metaL['ABOUT'] = vm['ABOUT']
dir = metaL['dir']
# readme = File('README.md')
# dir // readme
readme = metaL['readme']
readme // ('# `%s`' % metaL.val)
readme // ('## %s' % metaL['TITLE'].val)
readme // ''
readme // vm['ABOUT']
readme // ''
readme // ('(c) %s <<%s>> %s %s' %
(metaL['AUTHOR'].val, metaL['EMAIL'].val, metaL['YEAR'].val, metaL['LICENSE'].val))
readme // ''
readme // ('github: %s\n\nwiki: %s/wiki' %
(metaL['GITHUB'].val, metaL['GITHUB'].val))
readme // '''
### Links
* https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book.html
* https://github.com/ponyatov/OGP/blob/master/OGP.ipynb
'''
mk = File('Makefile')
dir // mk
ini = File('metaL.ini')
dir // ini
giti = File('.gitignore')
dir // giti
py = metaL['py'] = PFile('metaL.py')
dir // py
graph = Section('graph')
obj = Class('Object')
graph // obj
py // graph
dir