Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Multiple start-symbols support #100

Open
flip111 opened this issue Mar 21, 2019 · 0 comments
Open

Multiple start-symbols support #100

flip111 opened this issue Mar 21, 2019 · 0 comments

Comments

@flip111
Copy link

flip111 commented Mar 21, 2019

Would be great to have support for multiple start-symbols.

I guess it would not be difficult to add since the start rule is just found in the rules

$rule = $this->getRootRule();

Compiler/Llk/Parser.php

Lines 774 to 783 in de036d5

public function getRootRule()
{
foreach ($this->_rules as $rule => $_) {
if (!is_int($rule)) {
break;
}
}
return $rule;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant