Files
projectm/tests/data/FileParser/parser-code.milk
Kai Blaschke 7b2b60d61f Added a new preset file parser class.
Other changes:
- Renamed Parser to OldParser to make it clear this is going away.
- Removed all the useless "unit tests" which did not actually test anything.
- Added a new GTest-based test executable that can be run with CMake's CTest.
- Added unit tests for the new fileParser class, including test files.
2023-09-11 10:19:40 +02:00

35 lines
1.0 KiB
Plaintext

// Very simple multi-line equation
per_frame_1=r=1.0;
per_frame_2=g=1.0;
per_frame_3=b=1.0;
// A gap in numbering should terminate parsing
per_frame_gap_1=r=1.0;
per_frame_gap_2=g=1.0;
per_frame_gap_4=b=1.0;
// Line number 2 is duplicated, should only use the first one
per_frame_repeat_1=r=1.0;
per_frame_repeat_2=g=1.0;
per_frame_repeat_2=pi=3.141;
per_frame_repeat_3=b=1.0;
// Some different comment formats used plus a lot of whitespace.
// Also contains an equation that spans two line.
per_frame_trim_1= r = 1.0;
per_frame_trim_2= g = 1.0;
per_frame_trim_3=//****************** Comment format often seen in equations
per_frame_trim_4= // Empty line with comment
per_frame_trim_5= b = \\Continued line with backslash comment
per_frame_trim_6= 1.0;
// Comment spanning multiple lines, starting/ending at arbitrary positions
multiline_comment_1=r = 1.0; /* Comment...
multiline_comment_2=g = 1.0;
multiline_comment_3=... ends here */b = 1.0;
// Shader syntax
warp_1=`r=1.0;
warp_2=`g=1.0;
warp_3=`b=1.0;