Hello there

I am a beginner of antlr3

I use ANTLRWorks 1.2.3 on Ubuntu Linux

I make a grammar file like below code

--------------------------------------------------------------------
grammar test;
options{
        output = AST;
        language="c";
}

@lexer::header
{}

@parser::include
{}

start   :       sections+       ;

sections        :       section_type statement_list*    ;

section_type    :       DEFINE  |       DEPEND  ;

statement_list  :       VAR  '=' CMD    ;

VAR     :       ('0'..'9')+     ;

CMD     :       ('0'..'9')+     ;

DEFINE  :       'asd';
DEPEND  :       'adsf';
----------------------------------------------------------------------------------------------------------------------

My question is that if i load a grammar file to antrlworks 1.2.3

and click syntax diagram

then antrlworks show a message"connot display rule "start" because
start state not found" to  me

ok my first question is ...

what is start state?

second question is ....

how can i slove problem?

thnakq in advance

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to