Skip to content

Commit

Permalink
Experimental split version of the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
garykac committed Jan 30, 2024
1 parent f7d55f9 commit b442160
Show file tree
Hide file tree
Showing 22 changed files with 31,346 additions and 2 deletions.
33 changes: 31 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def process(self, src, dst):
infile.close()


def main():
def process_main_spec():
sections = [
'introduction',
'conventions',
Expand All @@ -267,7 +267,7 @@ def main():
infilename = 'sections/' + section + '.txt'
outfilename = 'sections/' + section + '.include'

# Generate the full bikeshed file.
# Generate the full include file for bikeshed.
parser = Parser()
parser.process(infilename, outfilename)

Expand All @@ -280,5 +280,34 @@ def main():
cmd.append('--line-numbers')
subprocess.call(cmd)

def process_split_spec():
# Split version of the UIEvents spec.
split_sections = [
'composition-events',
'focus-events',
'input-events',
'keyboard-events',
'mouse-events',
'ui-events',
'wheel-events',
]
for section in split_sections:
infilename = 'split/' + section + '.txt'
outfilename = 'split/' + section + '.bs'

# Generate the bikeshed file.
parser = Parser()
parser.process(infilename, outfilename)

print('Bikeshedding split specs...')
for section in split_sections:
print('...' + section)
cmd = ["bikeshed", "spec", "split/" + section + ".bs"]
subprocess.call(cmd)

def main():
#process_main_spec()
process_split_spec()

if __name__ == '__main__':
main()
638 changes: 638 additions & 0 deletions split/composition-events.bs

Large diffs are not rendered by default.

Loading

0 comments on commit b442160

Please sign in to comment.