grammar: distinguish `nd` for doc and `no` for optional eol