alecthomas / participle

A parser library for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document AllowTrailing

mikaelhg opened this issue · comments

Please document AllowTrailing and its suggested use.

My use case for it was that I wish to parse merely the header of a very large file.

Also, please document the use case where you wish to terminate a stateful lexer before the EOF.

The stateful lexer can't be terminated before EOF. AllowTrailing is documented here.