From cf366387449dcf9d34875a7d76f3b79c1e231d6f Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Thu, 12 Jan 2017 20:05:45 -0600 Subject: nqasm: Initial stab at a lexer and parser So far, this only understands instructions, but no operands or labels. It doesn't handle bad input gracefully. It's just enough to test the basics. --- nqasm.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nqasm.h (limited to 'nqasm.h') diff --git a/nqasm.h b/nqasm.h new file mode 100644 index 0000000..3712849 --- /dev/null +++ b/nqasm.h @@ -0,0 +1,11 @@ +#ifndef NQ_NQASM_H +#define NQ_NQASM_H + +struct instruction { + int mnem; +}; + +void add_instruction(const struct instruction *); + +#endif + -- cgit v1.2.3