Mercurial > hg > Members > kono > os9 > sbc09
view TL1/toasm.pl @ 177:3770e86114aa
TL/1 fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Apr 2019 04:27:18 +0900 |
parents | 8f2154d95a04 |
children |
line wrap: on
line source
#!/usr/bin/perl my $indent = 7; while(<>) { s/\r\n$//; s/^\d+ //; s/^ /" "x$indent/e; if (/^([a-zA-Z0-9]+) /) { my $w = $1; if (length $w < $indent) { my $s = " "x($indent-length $w); s/ /$s/e; } } print $_,"\n" }