Adaption to textparser 0.10.0.
@@ -12,7 +12,6 @@ from textparser import OneOrMore
from textparser import OneOrMoreDict
from textparser import DelimitedList
from textparser import Any
-from textparser import Grammar
from textparser import Inline
from textparser import tokenize_init
from textparser import Token
@@ -274,8 +273,7 @@ class Parser(textparser.Parser):
signal_group = Sequence(
'SIG_GROUP_', 'NUMBER', 'WORD', 'NUMBER', ':', OneOrMore('WORD'), ';')
- return Grammar(
- OneOrMoreDict(
+ return OneOrMoreDict(
choice(
message,
comment,
@@ -298,7 +296,6 @@ class Parser(textparser.Parser):
version
)
)
- )
class DbcSpecifics(object):
