yecc question

Thomas Lindgren thomasl_erlang@REDACTED
Wed Jul 7 19:21:21 CEST 2004


--- "David N. Welton" <davidw@REDACTED> 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
erl_scan.erl

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

 jungerl/lib/smart_exceptions/lex.erl

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

Best,
Thomas


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail



More information about the erlang-questions mailing list