compiler construction - What's the relationship between LR grammar and S-attributed grammar? -
is true lr grammars can converted s-attributed grammar since bottom-up grammars?
update
is true attributed grammars converted lr grammars s-attributed grammars?
from can tell, "s-attributed" describes any attribute grammar uses synthesized attributes. therefore grammar can parsed bottom (say lr grammar can parsed using lr parser) should capable of passing synthesized attributes up, , therefore considered s-attributed grammar if attached attributes it.
Comments
Post a Comment