Compare commits
4 Commits
update-eve
...
main
Author | SHA1 | Date | |
---|---|---|---|
7eb6a6f7a8 | |||
bb7886f063 | |||
2d7a2a09b8 | |||
76139f3934 |
@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
# [v0.4.0]
|
||||||
|
|
||||||
|
- Update event handling for new `constexpr` templated arguments
|
||||||
|
|
||||||
# [v0.3.4]
|
# [v0.3.4]
|
||||||
|
|
||||||
- Hotfixes for pyproject.toml file
|
- Hotfixes for pyproject.toml file
|
||||||
|
@ -186,9 +186,20 @@ class EventParser(FileParser):
|
|||||||
r"static const(?:expr)? Event[\s]*([\w]*)[\s]*=[\s]*"
|
r"static const(?:expr)? Event[\s]*([\w]*)[\s]*=[\s]*"
|
||||||
r"MAKE_EVENT\((0x[0-9a-fA-F]+|[0-9]{1,3}),[\s]*severity::([A-Z]*)\)[\s]*;"
|
r"MAKE_EVENT\((0x[0-9a-fA-F]+|[0-9]{1,3}),[\s]*severity::([A-Z]*)\)[\s]*;"
|
||||||
)
|
)
|
||||||
else:
|
return re.search(regex_string, full_string)
|
||||||
|
|
||||||
|
# Non compiletime const version kept for backwards compatibility
|
||||||
regex_string = r"static const(?:expr)? Event\s*([\w]+)\s*=\s*event::makeEvent\(([\w:]+),\s*(0x[0-9a-fA-F]+|[0-9]{1,3})\s*,\s*severity::([A-Z]+)\)\s*;"
|
regex_string = r"static const(?:expr)? Event\s*([\w]+)\s*=\s*event::makeEvent\(([\w:]+),\s*(0x[0-9a-fA-F]+|[0-9]{1,3})\s*,\s*severity::([A-Z]+)\)\s*;"
|
||||||
event_full_match = re.search(regex_string, full_string)
|
event_full_match = re.search(regex_string, full_string)
|
||||||
|
|
||||||
|
# Using old, non compiletime const version
|
||||||
|
if event_full_match:
|
||||||
|
return event_full_match
|
||||||
|
|
||||||
|
# Using compiletime const version
|
||||||
|
regex_string = r"static const(?:expr)? Event\s*([\w]+)\s*=\s*event::makeEvent<([\w:]+),\s*(0x[0-9a-fA-F]+|[0-9]{1,3})\s*,\s*severity::([A-Z]+)>\(\)\s*;"
|
||||||
|
event_full_match = re.search(regex_string, full_string)
|
||||||
|
|
||||||
return event_full_match
|
return event_full_match
|
||||||
|
|
||||||
def __build_multi_line_event_string(self, first_line: str, moving_window: List[str]) -> str:
|
def __build_multi_line_event_string(self, first_line: str, moving_window: List[str]) -> str:
|
||||||
|
@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
[project]
|
[project]
|
||||||
name = "fsfwgen"
|
name = "fsfwgen"
|
||||||
description = "FSFW Generator Core"
|
description = "FSFW Generator Core"
|
||||||
version = "0.3.4"
|
version = "0.4.0"
|
||||||
license = { text = "Apache-2.0" }
|
license = { text = "Apache-2.0" }
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Robin Mueller", email = "robin.mueller.m@gmail.com"}
|
{name = "Robin Mueller", email = "robin.mueller.m@gmail.com"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user