Move list and map parsers to atom
This commit is contained in:
@@ -76,10 +76,14 @@ def LiteralParser(input):
|
||||
|
||||
def AtomParser(input):
|
||||
from smnp.ast.node.identifier import IdentifierParser
|
||||
from smnp.ast.node.list import ListParser
|
||||
from smnp.ast.node.map import MapParser
|
||||
|
||||
return Parser.oneOf(
|
||||
LiteralParser,
|
||||
IdentifierParser,
|
||||
ListParser,
|
||||
MapParser,
|
||||
name="atom"
|
||||
)(input)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user