Skip to content

Instantly share code, notes, and snippets.

@tlively
tlively / if.py
Created January 4, 2024 19:49
Automatically translate Binaryen's if expressions to standard format
#! /usr/bin/python3
"""Translate from the legacy if-else text syntax to the standard syntax
"""
import argparse
import glob
import os
import subprocess
import sys
@tlively
tlively / id.py
Created February 6, 2024 02:02
Update identifiers in wat tests
#! /usr/bin/python3
"""Ensure all identifiers match the supported format.
"""
import argparse
import glob
import os
import subprocess
import sys