简体   繁体   English

LALR语法解析

[英]LALR Grammar Parsing

suppose i have a grammar( LALR parsing) 假设我有一个语法( LALR解析)

 S->Ba|bBc

Can a parsing table be constructed(with action and goto )practically using some parser 可以使用某些解析器实际构造解析表(带有actiongoto

There are many parsers out there for what you are asking for.The one that has feature to parse them online is at this link . 那里有许多您需要的解析器。具有此功能的在线解析器位于此链接 this parser has many options available. 该解析器有许多可用选项。 This is the practical implementation where you need to pass the grammar and it wil generate the parsing tables for you. 这是实际的实现,您需要传递语法,并且它将为您生成解析表。 Not sure about the action and goto . 不确定actiongoto

Yacc is also the one you can have look at. Yacc也是您可以看到的一种。 Here is the link . 这是链接 Hope this helped you.. 希望这对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM