Commit 59b7de7c authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

Merge branch 'development' of https://gitlab.lrz.de/badw-it/DHParser into development

parents 43efd6a5 bd7f33b3
......@@ -338,7 +338,7 @@ def compile_source(source: str,
1. The result as returned by the compiler or ``None`` in case of failure
2. A list of error or warning messages
3. The root-node of the abstract syntax tree if `preserve_ast` is True
or `None` otherwise.
or `None` otherwise.
"""
ast = None # type: Optional[Node]
original_text = load_if_file(source) # type: str
......
......@@ -114,7 +114,6 @@ object = "{" [ association { "," association } ] "}"
basic_type = (`object` | `array` | `string` | `number` | `boolean` | `null`
| `integer` | `uinteger` | `decimal` ) ~
#######################################################################
#
#: Entities
......
......@@ -303,7 +303,7 @@ class ts2dataclassCompiler(Compiler):
val = int(literal)
return f'IntEnum("{val}", {val})'
except ValueError:
return f'Enum({val}, {val})'
return f'Enum({literal}, {literal})'
else:
assert literal_typ == 'string'
literal = self.compile(typ)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment