Skip to content

Commit ad612cb

Browse files
committed
Experimental split version of the spec
1 parent d564b58 commit ad612cb

22 files changed

+31346
-2
lines changed

build.py

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def process(self, src, dst):
251251
infile.close()
252252

253253

254-
def main():
254+
def process_main_spec():
255255
sections = [
256256
'introduction',
257257
'conventions',
@@ -273,7 +273,7 @@ def main():
273273
infilename = 'sections/' + section + '.txt'
274274
outfilename = 'sections/' + section + '.include'
275275

276-
# Generate the full bikeshed file.
276+
# Generate the full include file for bikeshed.
277277
parser = Parser()
278278
parser.process(infilename, outfilename)
279279

@@ -286,5 +286,34 @@ def main():
286286
cmd.append('--line-numbers')
287287
subprocess.call(cmd)
288288

289+
def process_split_spec():
290+
# Split version of the UIEvents spec.
291+
split_sections = [
292+
'composition-events',
293+
'focus-events',
294+
'input-events',
295+
'keyboard-events',
296+
'mouse-events',
297+
'ui-events',
298+
'wheel-events',
299+
]
300+
for section in split_sections:
301+
infilename = 'split/' + section + '.txt'
302+
outfilename = 'split/' + section + '.bs'
303+
304+
# Generate the bikeshed file.
305+
parser = Parser()
306+
parser.process(infilename, outfilename)
307+
308+
print('Bikeshedding split specs...')
309+
for section in split_sections:
310+
print('...' + section)
311+
cmd = ["bikeshed", "spec", "split/" + section + ".bs"]
312+
subprocess.call(cmd)
313+
314+
def main():
315+
#process_main_spec()
316+
process_split_spec()
317+
289318
if __name__ == '__main__':
290319
main()

split/composition-events.bs

Lines changed: 638 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)