mapres 3.dev1__tar.gz → 3.dev3__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.dev1
3
+ Version: 3.dev3
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.1"
10
+ version = "3-dev.3"
11
11
  description = "A powerfull mapping utility"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.9"
@@ -1,5 +1,4 @@
1
1
  from dataclasses import dataclass
2
- from typing import List, Optional
3
2
 
4
3
 
5
4
  @dataclass
@@ -7,6 +6,11 @@ class Node:
7
6
  pass
8
7
 
9
8
 
9
+ @dataclass
10
+ class TemplateNode(Node):
11
+ children: list[NotADirectoryError]
12
+
13
+
10
14
  @dataclass
11
15
  class TextNode(Node):
12
16
  text: str
@@ -20,5 +24,5 @@ class IdentNode(Node):
20
24
  @dataclass
21
25
  class CallNode(Node):
22
26
  name: str # outer identifier
23
- arg: Node # single argument (Template fragment)
24
- syntax: str # which delimiter type produced it (colon/brace/etc)
27
+ arg: Node # nested TemplateNode
28
+ syntax: str # which delimiter type produced it
@@ -1,4 +1,4 @@
1
- from ast import TemplateNode, TextNode, IdentNode, CallNode
1
+ from .ast import TemplateNode, TextNode, IdentNode, CallNode
2
2
 
3
3
 
4
4
  class EvaluationError(Exception):
@@ -1,5 +1,3 @@
1
- # layers.py
2
-
3
1
  class Layer:
4
2
  """
5
3
  A single layer containing one or more maps.
@@ -1,5 +1,5 @@
1
- from tokenizer import TokenType, Token
2
- from ast import TemplateNode, TextNode, IdentNode, CallNode
1
+ from .tokenizer import TokenType, Token
2
+ from .ast import TemplateNode, TextNode, IdentNode, CallNode
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.dev1
3
+ Version: 3.dev3
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