Dinesh Premalal wrote:

Hi,


       Could you please provide some details on the states S_0 to S_4
    used
    interanally by the parser implementation.


S_0, S_1, ... S_4 internal states of the state machine in Guththila. Normally S_0 state occures at the error. Or unexpected point.

please see this

http://www.cse.mrt.ac.lk/~premalwd/Projects/docs/state.png <http://www.cse.mrt.ac.lk/%7Epremalwd/Projects/docs/state.png>

Cool, many thanks for the quick response.
Can we please rename S_0,..., S_4 to some sensible names please. e.g. S_0 with ERROR_STATE etc.
Looking at the diagram, may I suggest few names:
S_0 --> GUTHTHILA_ERROR_STATE
S_1 --> GUTHTHILA_START_STATE
S_2 --> GUTHTHILA_WITHIN_TAG_STATE
S_3 --> GUTHTHILA_AFTER_START_TAG_STATE
S_4 --> GUTHTHILA_AFTER_END_TAG_STATE

These are based on my understanding, which is not very comprehensive ;). Please review and suggest better ones. Then I could update the code accordingly.

Thanks,
Samisa...



thanks,
Dinesh



--
W.Dinesh Premalal
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.cse.mrt.ac.lk/~premalwd/ <http://www.cse.mrt.ac.lk/%7Epremalwd/>


Reply via email to