mirror of https://github.com/lianthony/NT4.0
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.
28 lines
373 B
28 lines
373 B
BEGIN {
|
|
Previous=""
|
|
Sep=""
|
|
}
|
|
{
|
|
if ($1 != previous) {
|
|
if (NR != 1)
|
|
printf "\n"
|
|
printf "%-30s ", $1
|
|
previous = $1
|
|
if ($2 == 0) {
|
|
printf "%-9d ", $3
|
|
Sep=""
|
|
next
|
|
} else {
|
|
if ( $1 ~ /\"[a-z][a-z0-9_]*\"/ )
|
|
{ printf " " }
|
|
else
|
|
{ printf "LEXEME " }
|
|
Sep=""
|
|
}
|
|
}
|
|
printf "%s%d", Sep, $2
|
|
Sep=", "
|
|
}
|
|
END {
|
|
printf "\n"
|
|
}
|