You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, LexicalTree express a tree of String.
In semantic parsing phase, probably we need to construct data from String tree.
Type information can be added in this phase, but it requires second scan nevertheless first scan is done in lexical parsing phase.
Type information is owned by only Token s that can be become Leaf of Tree. (Literal and Identifier)
The former can get a type information in lexical parsing phase, but latter cannot.
Based on the above, I'm coming up with two way.
Add type information to Literal in lexical parsing phase. To Identifier, adding it in semantic parsing phase.
Type information is added to all Leaf element in only semantic parsing phase.
Or do you have ideas? I need your opinion.
The text was updated successfully, but these errors were encountered:
Now,
LexicalTree
express a tree ofString
.In semantic parsing phase, probably we need to construct data from
String
tree.Type information can be added in this phase, but it requires second scan nevertheless first scan is done in lexical parsing phase.
Type information is owned by only
Token
s that can be becomeLeaf
ofTree
. (Literal
andIdentifier
)The former can get a type information in lexical parsing phase, but latter cannot.
Based on the above, I'm coming up with two way.
Literal
in lexical parsing phase. ToIdentifier
, adding it in semantic parsing phase.Leaf
element in only semantic parsing phase.Or do you have ideas? I need your opinion.
The text was updated successfully, but these errors were encountered: