You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
377 B

import subprocess
import os
Garrit Franke (74): Initial commit Add license Add curly braces Parse functions Fix function parsing Update math example Refactor TokenType Implement return statement Fix keyword recognition Fix test compilation Fix tests and comments Add variable declarations Implement returning variables Pretty print AST output Add strings Rename flex -> sabre Fix example filename Add parser tests Add multiple functions test Add token positions Add token positions Allow empty returns Add x86 generator scaffolding Generate assembly Add JS generator Fix warnings Implement return generation Refactor x86 generator Print result of main for js target Fix infinite loop when parsing strings Add CI Add function arguments Add function arguments Tokenize Comma Fix return with expression Remove uneeded compount statement Add math operations Fix parsing of complex compound expressions Clean up expression parsing Refactor function call parsing Change function declaration syntax Add greeter example Add fib example Add basic conditionals; remove semicolons Allow multiple statements in if conditional Add TODO file Add js generator for variable declarations Add remaining comparison operators Add Readme Add backend-state to README Add CLI TODO Add error reporting TODO Fix typo Add builds.sr.ht badge Add basic CLI Revert "Change function declaration syntax" Fix production build Fix examples Fix readme Fix compound op with identifier first Fix fib example Add conditional else if branch Generalize block into own statement Add else branch Add copyright notices Fix warnings Add integer arrays Clean up error handling Refactor parser module structure Fix warnings Add docs Add placeholder for documentation docs: add placeholder for CLI docs: add placeholders for developers
3 years ago
os.system("mdbook build --dest-dir './book'")
os.system("mdbook build --dest-dir './book/latest'")
tags = subprocess.run(["git", "tag"], stdout=subprocess.PIPE).stdout.decode('utf-8')
for tag in tags.split("\n"):
if tag == "":
continue
os.system("git checkout " + tag)
os.system("mdbook build --dest-dir './book/" + tag + "'")