Um, why did you go to the ecc_parser, of all places, if you're trying to learn the _language_?<br><br><br><div><span class="gmail_quote">On 12/21/06, <b class="gmail_sendername">Pascal</b> <<a href="mailto:pascal.guichard@gmail.com">
pascal.guichard@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hello everybody,<br><br>i try to learn some Erlang, ans went to the users' guide, and then to practice a little to the examples.
<br><br>so i compiled and ran the ecc_parser, but cannot continue with this output :<br><br>{ok,[{compiler,"ebnf"},<br>     {characters,[{"small",{string,"abcdefghijklmnopqrstuvwxyz"}},<br>                  {"big",{string,"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}},
<br>                  {"alpha",{plus,{atom,"small"},{atom,"big"}}},<br>                  {"dig",{string,"0123456789"}},<br>                  {"blank",{plus,{chr,9},{plus,{chr,10},{chr,32}}}},
<br>                  {"noQuote",{minus,any,{string,"""}}}]},<br>     {comments,"(*","*)",nested},<br>     {tokens,[{prod,"Nonterminal",<br>                    {seq,{nt,"small"},{star,{alt,{nt,"alpha"},{nt,"dig"}}}}},
<br>              {prod,"Terminal",<br>                    {seq,{nt,"big"},{star,{alt,{nt,"alpha"},{nt,"dig"}}}}},<br>              {prod,"White",{seq,{nt,"blank"},{star,{nt,"blank"}}}},
<br>              {prod,"String",<br>                    {seq,{tq,"""},{seq,{star,{nt,"noQuote"}},{tq,"""}}}}]},<br>     {ignore,["White","Comment"]},<br>
     {syntax,[{prod,"ebnf",{seq,{star,{nt,"production"}},{ts,"."}}},<br>              {prod,"production",<br>                    {seq,{ta,"Nonterminal"},<br>                         {seq,{ts,"="},{seq,{nt,"expr"},{ts,";"}}}}},
<br>              {prod,"expr",<br>                    {seq,{nt,"term"},{star,{seq,{ts,"|"},{nt,"term"}}}}},<br>              {prod,"term",{seq,{nt,"factor"},{star,{nt,"factor"}}}},
<br>              {prod,"factor",<br>                    {alt,{seq,{ts,"{"},{seq,{nt,"expr"},{ts,"}"}}},<br>                         {alt,{seq,{ts,"["},{seq|...}},{alt,{seq|...},{...}}}}}]},
<br>     {theend,{atom,33,"ebnf"}}]}<br><br>So could someone gimme  some explanations, what is this output, how i can make further with this example, to go to the ebnf parser, and then a program that deals with grammar, or at least point me somewhere, that takes on the path.
<br><br>thanks in advance.<br>_________________________________________________________<br>Post sent from <a href="http://www.trapexit.org">http://www.trapexit.org</a><br>_______________________________________________<br>
erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions
</a><br></blockquote></div><br>