From c8450b94be661a6d9d9d2718cc16befa4a5abae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Zrounba?= Date: Tue, 14 Nov 2023 17:45:45 +0000 Subject: Improve parsing - Make multi-file more robust - Error reporting is more accurate (shows file:line and prints offending string) - Allow `.include` directives in subcircuits --- src/parser/parser_state.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/parser/parser_state.h (limited to 'src/parser/parser_state.h') diff --git a/src/parser/parser_state.h b/src/parser/parser_state.h new file mode 100644 index 0000000..359d67f --- /dev/null +++ b/src/parser/parser_state.h @@ -0,0 +1,10 @@ +#pragma once + +#include + +using std::string; + +struct ParserState { + string current_filename; + string current_line; +}; -- cgit v1.2.3