18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 22:55:16 +01:00
Commit Graph

2 Commits

Author SHA1 Message Date
jerrrrycho
ee14cefcb5 fix(parser): an include at the very end of a text leaves the end of the data to the included file (#492)
A file which ends right after the end of an include directive, with no line
break after it, had the parser report its end as soon as the directive was
read: eof() looked only at the text being read, not at the included file it
still had to go through. A reader which stops at the end of the data, like
deserialize_map() (the sound overrides), then read only the first line of the
included file. eof() now also waits for the included file to end.

The tokens themselves don't change, and a file with a line break after the
end of its last include reports the end as before. The .fiz files of the
wagons which broke the change of #100 (pkp/yb_v1, the directive at the very
end without a line break) are read through on staging already; a test now
keeps them that way.
2026-11-25 05:24:38 +01:00
jerrrrycho
2f13f052f7 test: characterize the parser of the text files
The tokens, comments, quotes, parameters and include directives of cParser, its numbers and its place in the text, as they behave now, with the files of the tests made in a folder of the build (scratch.h). The helpers of utilities.h which read from a parser are here too.
2026-11-11 22:40:02 +01:00