Currently, the program outputs tokens in their 8-bit form, making it challenging for users to interpret and validate the results. To enhance usability and readability, we should implement functions to print stringified tokens.
Expected Output
Currently the sample_strings.c example file outputs:
Each DTA node represents one string:
DTA linked-list node 0 (len: 3):
0x3 0x0 0x6
DTA linked-list node 1 (len: 3):
0x3 0x0 0x7
DTA linked-list node 2 (len: 3):
0x4 0x1 0x6
DTA linked-list node 3 (len: 3):
0x4 0x1 0x7
Using the new functions this would instead output:
Each DTA node represents one string:
DTA linked-list node 0 (len: 3):
a horse walks
DTA linked-list node 1 (len: 3):
a horse jumps
DTA linked-list node 2 (len: 3):
the dog walks
DTA linked-list node 3 (len: 3):
the dog jumps
Currently, the program outputs tokens in their 8-bit form, making it challenging for users to interpret and validate the results. To enhance usability and readability, we should implement functions to print stringified tokens.
Expected Output
Currently the
sample_strings.cexample file outputs:Using the new functions this would instead output: