You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a [null test](test_parser.py). More tests need to be added.
26
+
I have created a [null test](tests/test_parser.py). More tests need to be added.
27
27
28
28
## Thanks
29
29
@@ -33,4 +33,4 @@ I have created a [null test](test_parser.py). More tests need to be added.
33
33
34
34
## Contributions
35
35
36
-
If you can spare some time for testing and/or contributing, I would be very grateful. Please check the [TODO](../TODO) as well for current goals/issues. You can reach me at **demberto**[at]**protonmail**[dot]**com** as well :)
36
+
If you can spare some time for testing and/or contributing, I would be very grateful. Please check the [TODO](TODO.md) as well for current goals/issues. You can reach me at **demberto**[at]**protonmail**[dot]**com** as well :)
Copy file name to clipboardExpand all lines: docs/how-does-it-work.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Since, FLP is an event-based binary format, we need to work with data types of C
8
8
9
9
Then I read all the events into a `list` of `Event` objects which I call the **Event Store**. The parsing logic for this is in [`_build_event_store()`](../pyflp/parser.py#L78) method of `ProjectParser`. It is important that every new event has an `index` so it can be sorted later on, while saving. The `Event` class and its subclasses `ByteEvent`, `WordEvent`, `DWordEvent`, `TextEvent`, and `DataEvent` look like this *minified*:
10
10
11
-
```Python
11
+
```{code-block} python
12
12
class Event:
13
13
def __init__(self, id, data):
14
14
self.id = id
@@ -33,7 +33,8 @@ Subclasses have additional `to_*` helper methods, which convert basic types to P
33
33
Once the events are created, the `ProjectParser.parse()` starts building the `Project` object, by examining `Event` IDs. All its fields for e.g. `Channel`, `Insert` etc. inherit from `FLObject`.
0 commit comments