-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
131 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) 2024 Dr. Colin Hirsch and Daniel Frey | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include "test.hpp" | ||
|
||
#include <tao/pegtl/contrib/trace.hpp> | ||
|
||
namespace test | ||
{ | ||
using namespace TAO_PEGTL_NAMESPACE; | ||
|
||
using grammar = seq< sor< one< 'a' >, one< 'F' > >, eof >; | ||
|
||
} // namespace test | ||
|
||
namespace TAO_PEGTL_NAMESPACE | ||
{ | ||
void unit_test() | ||
{ | ||
const std::string data = "F"; | ||
memory_input in( data, "trace test -- please ignore" ); | ||
// Just enough to see that it compiles and nothing explodes. | ||
include_trace< type_list< one< 'a' >, one< 'F' > >, test::grammar >( in ); | ||
in.restart(); | ||
exclude_trace< type_list< one< 'a' > >, test::grammar >( in ); | ||
} | ||
|
||
} // namespace TAO_PEGTL_NAMESPACE | ||
|
||
#include "main.hpp" |