yecc question

Thomas Lindgren <>
Wed Jul 7 19:21:21 CEST 2004

--- "David N. Welton" <> wrote:
> The 'bar' module created above doesn't have any scan
> function, though:
> -export([parse/1, parse_and_scan/1,
> format_error/1]).
> Is there a simple (i.e. not an erlang parser!)
> functioning example I can 
> look at somewhere?

In short, you have to provide the lexical analyzer
yourself. The canonical handwritten example is

If you are feeling adventurous, you can also have a
look at 


which is a lex-like utility. There are docs at the
front of the file and some usage examples at the end.


Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

More information about the erlang-questions mailing list