mapres 3.dev2__tar.gz → 3.dev4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapres
3
- Version: 3.dev2
3
+ Version: 3.dev4
4
4
  Summary: A powerfull mapping utility
5
5
  Author: iFamished
6
6
  License: MIT
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "mapres"
10
- version = "3-dev.2"
10
+ version = "3-dev.4"
11
11
  description = "A powerfull mapping utility"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.9"
@@ -6,6 +6,11 @@ class Node:
6
6
  pass
7
7
 
8
8
 
9
+ @dataclass
10
+ class TemplateNode(Node):
11
+ children: list[NotADirectoryError]
12
+
13
+
9
14
  @dataclass
10
15
  class TextNode(Node):
11
16
  text: str
@@ -19,5 +24,5 @@ class IdentNode(Node):
19
24
  @dataclass
20
25
  class CallNode(Node):
21
26
  name: str # outer identifier
22
- arg: Node # single argument (Template fragment)
23
- syntax: str # which delimiter type produced it (colon/brace/etc)
27
+ arg: Node # nested TemplateNode
28
+ syntax: str # which delimiter type produced it
@@ -1,5 +1,5 @@
1
1
  from .tokenizer import TokenType, Token
2
- from .ast import TemplateNode, TextNode, IdentNode, CallNode
2
+ from .ast import TemplateNode, TextNode, IdentNode, CallNode, Node
3
3
 
4
4
 
5
5
  class ParserError(Exception):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapres
3
- Version: 3.dev2
3
+ Version: 3.dev4
4
4
  Summary: A powerfull mapping utility
5
5
  Author: iFamished
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes