From 18ce15f3aee71debe3f35356c6a739943815da8a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Oct 2016 14:53:32 +0200 Subject: Initial work on testscript lexer/parser --- build2/test/script/token | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 build2/test/script/token (limited to 'build2/test/script/token') diff --git a/build2/test/script/token b/build2/test/script/token new file mode 100644 index 0000000..51bf282 --- /dev/null +++ b/build2/test/script/token @@ -0,0 +1,45 @@ +// file : build2/test/script/token -*- C++ -*- +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD2_TEST_SCRIPT_TOKEN +#define BUILD2_TEST_SCRIPT_TOKEN + +#include +#include + +#include + +namespace build2 +{ + namespace test + { + namespace script + { + struct token_type: build2::token_type + { + using base_type = build2::token_type; + + enum + { + pipe = base_type::value_next, // | + clean, // & + log_and, // && + log_or, // || + + in_null, //