English 中文(简体)
升格为法学士
原标题:Turn grammar into LL1 Grammar

我正在明天修订考试,并在往年进行。

在测试中,是图表。

Expression -> Foo "+" Bar "end"
Foo -> [a-z0-9]+ | Expression
Bar -> Expression Foo | a*b*c+

我已经尝试并花了几个小时时间研究如何做,但可以说出。

我看着用ep子来替代东西,但并不感到有信心。

我认为,我需要建立一个oo和一个酒吧,然后在化sil规则中加入,但我不相信。

请允许我(简略地)介绍一下我——如何将其改为能够读书的L(1)。

预 收

最佳回答

正如我记得,L-1图马以1个文号向前看。 你的目标是消除模棱两可和留意。 你们所需要的一切——使用左要素。 查询

问题回答

暂无回答




相关问题
Parse players currently in lobby

I m attempting to write a bash script to parse out the following log file and give me a list of CURRENT players in the room (so ignoring players that left, but including players that may have rejoined)...

How to get instance from string in C#?

Is it possible to get the property of a class from string and then set a value? Example: string s = "label1.text"; string value = "new value"; label1.text = value; <--and some code that makes ...

XML DOM parsing br tag

I need to parse a xml string to obtain the xml DOM, the problem I m facing is with the self closing html tag like <br /> giving me the error of Tag mismatch expected </br>. I m aware this ...

Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

Locating specific string and capturing data following it

I built a site a long time ago and now I want to place the data into a database without copying and pasting the 400+ pages that it has grown to so that I can make the site database driven. My site ...

热门标签