Find the index of the next or previous non-comment in a parse table.
next_non_comment(pd, pos) previous_non_comment(pd, pos)
pd
A parse table.
pos
The position of the token to start the search from.