This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stddef.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <unistd.h> | |
void usage(const char *program_name) { | |
printf("Usage: %s <input-file>\n", program_name); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use core::{num, slice}; | |
use std::{io::Lines, string}; | |
const STRING_BORDER: char = '"'; | |
#[derive(Debug)] | |
enum NonTerminal { | |
ArgumentOpen, | |
ArgumentClose, | |
BlockOpen, |