File: compare.sh

package info (click to toggle)
rust-swc-core 35.0.0~ds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,816 kB
  • sloc: javascript: 873; xml: 538; sh: 358; makefile: 35; python: 5
file content (6 lines) | stat: -rwxr-xr-x 203 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/usr/bin/env bash

# Print a side by side comparison of Babel and SWC AST.
SCRIPT_DIR=`dirname "$0"`

paste <(node "$SCRIPT_DIR/babelgen.js" $1) <(node "$SCRIPT_DIR/swcgen.js" $1) | column -s $'\t' -t