Hi,
I've been searching my local library and googling for some guidance on this, but the only thing I've been finding is theory, theory and theory. No real or solid help.
For clarity, what your saying is don't make a list (vector) of tokens then process it, but rather make a single token THEN then process it, right?
My way:
1) Create token.
2) insert token into list
3) goto 1
4) if done goto "5"
5) pass list off to the Parser
6) check if it meets our lanugage specifications.
Here's what I think your saying:
1) Create Token
2) pass token to Parser
6) check if it meets our lanugage specifications.
3) goto 1
Is that right?
(Maybe I sould start a new thread here. (!) )
Me.
I've been searching my local library and googling for some guidance on this, but the only thing I've been finding is theory, theory and theory. No real or solid help.
You don't lex the entire file and then parse it..
For clarity, what your saying is don't make a list (vector) of tokens then process it, but rather make a single token THEN then process it, right?
My way:
1) Create token.
2) insert token into list
3) goto 1
4) if done goto "5"
5) pass list off to the Parser
6) check if it meets our lanugage specifications.
Here's what I think your saying:
1) Create Token
2) pass token to Parser
6) check if it meets our lanugage specifications.
3) goto 1
Is that right?
(Maybe I sould start a new thread here. (!) )
Me.