Implement .rt and args parsing, move test scene
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 28 Nov 2024 16:58:18 +0000 (17:58 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 28 Nov 2024 17:04:36 +0000 (18:04 +0100)
commita3bd47a5b78cfa54ef9e4f27e14885987d30f605
tree5beee16b0290b3cd74e45a3f7be965855fd5a707
parentc6f890b309457a519c52488d7e5b297ade4eb1dd
Implement .rt and args parsing, move test scene

Add rt_grammar and rt_parsing_table as they describe the grammar used to
parse the .rt file. Their contents are available to he program through
the file parsing_info.h where they are encoded (using xxd -i).

The test_scene is added for testing as the "default scene" had to be
erased from main for parsing to be enabled.

Other changes involve the parsing implementation directly.
Makefile
inc/miniRT.h
inc/parsing_info.h [new file with mode: 0644]
inc/vec3.h
rt_grammar [new file with mode: 0644]
rt_parsing_table [new file with mode: 0644]
src/main.c
src/parsing.c [new file with mode: 0644]
src/vec3.c
test_scene.rt [new file with mode: 0644]