From 2b201ae34165da00afc5d1c6f3051cd093ddda6f Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Sat, 30 Oct 2021 20:43:47 +0200 Subject: [PATCH] git subrepo pull --force packages/PEGTL subrepo: subdir: "packages/PEGTL" merged: "bf4487c97" upstream: origin: "git@github.com:taocpp/PEGTL.git" branch: "main" commit: "bf4487c97" git-subrepo: version: "0.4.3" origin: "git@github.com:ingydotnet/git-subrepo.git" commit: "2f68596" --- packages/PEGTL/.clang-format | 9 +- packages/PEGTL/.clang-tidy | 7 + packages/PEGTL/.gitrepo | 4 +- packages/PEGTL/CMakeLists.txt | 2 +- packages/PEGTL/LICENSE | 21 - packages/PEGTL/LICENSE_1_0.txt | 23 + packages/PEGTL/Makefile | 30 +- packages/PEGTL/README.md | 15 +- packages/PEGTL/doc/Actions-and-States.md | 9 +- packages/PEGTL/doc/Changelog.md | 26 + packages/PEGTL/doc/Contrib-and-Examples.md | 11 + packages/PEGTL/doc/Control-and-Debug.md | 6 + packages/PEGTL/doc/Errors-and-Exceptions.md | 6 + packages/PEGTL/doc/Getting-Started.md | 6 + packages/PEGTL/doc/Grammar-Analysis.md | 6 + packages/PEGTL/doc/Inputs-and-Parsing.md | 6 + packages/PEGTL/doc/Installing-and-Using.md | 18 +- packages/PEGTL/doc/Meta-Data-and-Visit.md | 6 + packages/PEGTL/doc/Migration-Guide.md | 6 + packages/PEGTL/doc/Parse-Tree.md | 6 + packages/PEGTL/doc/Performance-Notes.md | 6 + packages/PEGTL/doc/README.md | 8 +- packages/PEGTL/doc/Rule-Reference.md | 13 + packages/PEGTL/doc/Rules-and-Grammars.md | 6 + packages/PEGTL/include/tao/pegtl.hpp | 3 +- .../PEGTL/include/tao/pegtl/apply_mode.hpp | 3 +- .../PEGTL/include/tao/pegtl/argv_input.hpp | 3 +- packages/PEGTL/include/tao/pegtl/ascii.hpp | 4 +- .../PEGTL/include/tao/pegtl/buffer_input.hpp | 5 +- .../PEGTL/include/tao/pegtl/change_action.hpp | 3 +- .../tao/pegtl/change_action_and_state.hpp | 3 +- .../tao/pegtl/change_action_and_states.hpp | 3 +- .../include/tao/pegtl/change_control.hpp | 3 +- .../PEGTL/include/tao/pegtl/change_state.hpp | 3 +- .../PEGTL/include/tao/pegtl/change_states.hpp | 3 +- packages/PEGTL/include/tao/pegtl/config.hpp | 7 +- .../PEGTL/include/tao/pegtl/contrib/abnf.hpp | 3 +- .../include/tao/pegtl/contrib/add_state.hpp | 3 +- .../include/tao/pegtl/contrib/alphabet.hpp | 3 +- .../include/tao/pegtl/contrib/analyze.hpp | 3 +- .../tao/pegtl/contrib/analyze_traits.hpp | 3 +- .../include/tao/pegtl/contrib/check_bytes.hpp | 3 +- .../tao/pegtl/contrib/control_action.hpp | 3 +- .../include/tao/pegtl/contrib/coverage.hpp | 3 +- .../include/tao/pegtl/contrib/forward.hpp | 3 +- .../include/tao/pegtl/contrib/function.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/http.hpp | 5 +- .../tao/pegtl/contrib/icu/internal.hpp | 3 +- .../include/tao/pegtl/contrib/icu/utf16.hpp | 3 +- .../include/tao/pegtl/contrib/icu/utf32.hpp | 3 +- .../include/tao/pegtl/contrib/icu/utf8.hpp | 3 +- .../include/tao/pegtl/contrib/if_then.hpp | 3 +- .../include/tao/pegtl/contrib/instantiate.hpp | 3 +- .../include/tao/pegtl/contrib/integer.hpp | 23 +- .../tao/pegtl/contrib/internal/endian.hpp | 3 +- .../tao/pegtl/contrib/internal/endian_gcc.hpp | 3 +- .../tao/pegtl/contrib/internal/endian_win.hpp | 3 +- .../pegtl/contrib/internal/peek_mask_uint.hpp | 3 +- .../contrib/internal/peek_mask_uint8.hpp | 3 +- .../tao/pegtl/contrib/internal/peek_uint.hpp | 3 +- .../tao/pegtl/contrib/internal/peek_uint8.hpp | 3 +- .../tao/pegtl/contrib/internal/peek_utf16.hpp | 3 +- .../tao/pegtl/contrib/internal/peek_utf32.hpp | 3 +- .../tao/pegtl/contrib/internal/read_uint.hpp | 3 +- .../contrib/internal/set_stack_guard.hpp | 3 +- .../contrib/internal/vector_stack_guard.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/iri.hpp | 107 ++++ .../PEGTL/include/tao/pegtl/contrib/json.hpp | 3 +- .../tao/pegtl/contrib/json_pointer.hpp | 3 +- .../include/tao/pegtl/contrib/limit_bytes.hpp | 3 +- .../include/tao/pegtl/contrib/limit_depth.hpp | 3 +- .../include/tao/pegtl/contrib/parse_tree.hpp | 3 +- .../tao/pegtl/contrib/parse_tree_to_dot.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/peg.hpp | 121 ---- .../include/tao/pegtl/contrib/predicates.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/print.hpp | 3 +- .../tao/pegtl/contrib/print_coverage.hpp | 3 +- .../include/tao/pegtl/contrib/proto3.hpp | 143 +++++ .../include/tao/pegtl/contrib/raw_string.hpp | 3 +- .../tao/pegtl/contrib/remove_first_state.hpp | 3 +- .../tao/pegtl/contrib/remove_last_states.hpp | 3 +- .../tao/pegtl/contrib/rep_one_min_max.hpp | 3 +- .../include/tao/pegtl/contrib/rep_string.hpp | 3 +- .../tao/pegtl/contrib/separated_seq.hpp | 46 ++ .../tao/pegtl/contrib/shuffle_states.hpp | 3 +- .../tao/pegtl/contrib/state_control.hpp | 15 +- .../include/tao/pegtl/contrib/to_string.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/trace.hpp | 3 +- .../include/tao/pegtl/contrib/uint16.hpp | 3 +- .../include/tao/pegtl/contrib/uint32.hpp | 3 +- .../include/tao/pegtl/contrib/uint64.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/uint8.hpp | 3 +- .../include/tao/pegtl/contrib/unescape.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/uri.hpp | 5 +- .../PEGTL/include/tao/pegtl/contrib/utf16.hpp | 3 +- .../PEGTL/include/tao/pegtl/contrib/utf32.hpp | 3 +- .../PEGTL/include/tao/pegtl/cstream_input.hpp | 3 +- packages/PEGTL/include/tao/pegtl/demangle.hpp | 3 +- .../include/tao/pegtl/disable_action.hpp | 3 +- .../PEGTL/include/tao/pegtl/discard_input.hpp | 3 +- .../tao/pegtl/discard_input_on_failure.hpp | 3 +- .../tao/pegtl/discard_input_on_success.hpp | 3 +- .../PEGTL/include/tao/pegtl/enable_action.hpp | 3 +- packages/PEGTL/include/tao/pegtl/eol.hpp | 3 +- packages/PEGTL/include/tao/pegtl/eol_pair.hpp | 3 +- .../PEGTL/include/tao/pegtl/file_input.hpp | 3 +- .../include/tao/pegtl/internal/action.hpp | 3 +- .../tao/pegtl/internal/action_input.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/any.hpp | 3 +- .../include/tao/pegtl/internal/apply.hpp | 3 +- .../include/tao/pegtl/internal/apply0.hpp | 3 +- .../tao/pegtl/internal/apply0_single.hpp | 3 +- .../tao/pegtl/internal/apply_single.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/at.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/bof.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/bol.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/bump.hpp | 3 +- .../include/tao/pegtl/internal/bump_help.hpp | 3 +- .../include/tao/pegtl/internal/bytes.hpp | 3 +- .../include/tao/pegtl/internal/control.hpp | 3 +- .../tao/pegtl/internal/cr_crlf_eol.hpp | 3 +- .../include/tao/pegtl/internal/cr_eol.hpp | 3 +- .../include/tao/pegtl/internal/crlf_eol.hpp | 3 +- .../tao/pegtl/internal/cstream_reader.hpp | 3 +- .../tao/pegtl/internal/cstring_reader.hpp | 3 +- .../tao/pegtl/internal/dependent_false.hpp | 3 +- .../include/tao/pegtl/internal/disable.hpp | 3 +- .../include/tao/pegtl/internal/discard.hpp | 3 +- .../include/tao/pegtl/internal/enable.hpp | 3 +- .../tao/pegtl/internal/enable_control.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/eof.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/eol.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/eolf.hpp | 3 +- .../include/tao/pegtl/internal/failure.hpp | 3 +- .../tao/pegtl/internal/file_mapper_posix.hpp | 3 +- .../tao/pegtl/internal/file_mapper_win32.hpp | 3 +- .../tao/pegtl/internal/file_reader.hpp | 3 +- .../include/tao/pegtl/internal/filesystem.hpp | 3 +- .../include/tao/pegtl/internal/has_apply.hpp | 3 +- .../include/tao/pegtl/internal/has_apply0.hpp | 3 +- .../include/tao/pegtl/internal/has_match.hpp | 3 +- .../include/tao/pegtl/internal/has_unwind.hpp | 3 +- .../include/tao/pegtl/internal/identifier.hpp | 3 +- .../include/tao/pegtl/internal/if_apply.hpp | 3 +- .../include/tao/pegtl/internal/if_must.hpp | 3 +- .../tao/pegtl/internal/if_must_else.hpp | 3 +- .../tao/pegtl/internal/if_then_else.hpp | 3 +- .../include/tao/pegtl/internal/input_pair.hpp | 3 +- .../tao/pegtl/internal/istream_reader.hpp | 3 +- .../include/tao/pegtl/internal/istring.hpp | 3 +- .../include/tao/pegtl/internal/iterator.hpp | 3 +- .../tao/pegtl/internal/lf_crlf_eol.hpp | 3 +- .../include/tao/pegtl/internal/lf_eol.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/list.hpp | 3 +- .../include/tao/pegtl/internal/list_must.hpp | 3 +- .../include/tao/pegtl/internal/list_tail.hpp | 3 +- .../tao/pegtl/internal/list_tail_pad.hpp | 3 +- .../include/tao/pegtl/internal/marker.hpp | 3 +- .../include/tao/pegtl/internal/minus.hpp | 3 +- .../tao/pegtl/internal/missing_apply.hpp | 3 +- .../tao/pegtl/internal/missing_apply0.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/must.hpp | 3 +- .../include/tao/pegtl/internal/not_at.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/one.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/opt.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/pad.hpp | 3 +- .../include/tao/pegtl/internal/pad_opt.hpp | 3 +- .../tao/pegtl/internal/path_to_string.hpp | 3 +- .../include/tao/pegtl/internal/peek_char.hpp | 3 +- .../include/tao/pegtl/internal/peek_utf8.hpp | 3 +- .../tao/pegtl/internal/pegtl_string.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/plus.hpp | 3 +- .../include/tao/pegtl/internal/raise.hpp | 3 +- .../include/tao/pegtl/internal/range.hpp | 3 +- .../include/tao/pegtl/internal/ranges.hpp | 3 +- .../include/tao/pegtl/internal/rematch.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/rep.hpp | 3 +- .../include/tao/pegtl/internal/rep_min.hpp | 3 +- .../tao/pegtl/internal/rep_min_max.hpp | 3 +- .../include/tao/pegtl/internal/rep_opt.hpp | 3 +- .../include/tao/pegtl/internal/require.hpp | 3 +- .../tao/pegtl/internal/result_on_found.hpp | 3 +- .../include/tao/pegtl/internal/rules.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/seq.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/sor.hpp | 3 +- .../PEGTL/include/tao/pegtl/internal/star.hpp | 3 +- .../include/tao/pegtl/internal/star_must.hpp | 3 +- .../include/tao/pegtl/internal/state.hpp | 45 +- .../include/tao/pegtl/internal/string.hpp | 3 +- .../include/tao/pegtl/internal/success.hpp | 3 +- .../tao/pegtl/internal/try_catch_type.hpp | 3 +- .../include/tao/pegtl/internal/until.hpp | 3 +- .../PEGTL/include/tao/pegtl/istream_input.hpp | 3 +- packages/PEGTL/include/tao/pegtl/match.hpp | 3 +- .../PEGTL/include/tao/pegtl/memory_input.hpp | 3 +- .../PEGTL/include/tao/pegtl/mmap_input.hpp | 3 +- packages/PEGTL/include/tao/pegtl/must_if.hpp | 3 +- packages/PEGTL/include/tao/pegtl/normal.hpp | 3 +- packages/PEGTL/include/tao/pegtl/nothing.hpp | 3 +- packages/PEGTL/include/tao/pegtl/parse.hpp | 3 +- .../PEGTL/include/tao/pegtl/parse_error.hpp | 3 +- packages/PEGTL/include/tao/pegtl/position.hpp | 3 +- .../PEGTL/include/tao/pegtl/read_input.hpp | 3 +- .../PEGTL/include/tao/pegtl/require_apply.hpp | 3 +- .../include/tao/pegtl/require_apply0.hpp | 3 +- .../PEGTL/include/tao/pegtl/rewind_mode.hpp | 3 +- packages/PEGTL/include/tao/pegtl/rules.hpp | 3 +- .../PEGTL/include/tao/pegtl/string_input.hpp | 3 +- .../PEGTL/include/tao/pegtl/tracking_mode.hpp | 3 +- .../PEGTL/include/tao/pegtl/type_list.hpp | 3 +- packages/PEGTL/include/tao/pegtl/utf8.hpp | 3 +- packages/PEGTL/include/tao/pegtl/version.hpp | 9 +- packages/PEGTL/include/tao/pegtl/visit.hpp | 3 +- .../PEGTL/src/example/pegtl/CMakeLists.txt | 2 +- .../PEGTL/src/example/pegtl/abnf2pegtl.cpp | 3 +- packages/PEGTL/src/example/pegtl/analyze.cpp | 3 +- .../PEGTL/src/example/pegtl/calculator.cpp | 3 +- .../src/example/pegtl/chomsky_hierarchy.cpp | 3 +- packages/PEGTL/src/example/pegtl/csv1.cpp | 3 +- packages/PEGTL/src/example/pegtl/csv2.cpp | 3 +- packages/PEGTL/src/example/pegtl/double.hpp | 3 +- .../PEGTL/src/example/pegtl/dynamic_match.cpp | 3 +- .../PEGTL/src/example/pegtl/expression.cpp | 3 +- .../PEGTL/src/example/pegtl/hello_world.cpp | 3 +- .../PEGTL/src/example/pegtl/indent_aware.cpp | 3 +- packages/PEGTL/src/example/pegtl/iri.cpp | 102 ++++ .../PEGTL/src/example/pegtl/json_analyze.cpp | 3 +- packages/PEGTL/src/example/pegtl/json_ast.cpp | 3 +- .../PEGTL/src/example/pegtl/json_build.cpp | 3 +- .../PEGTL/src/example/pegtl/json_classes.hpp | 3 +- .../PEGTL/src/example/pegtl/json_count.cpp | 3 +- .../PEGTL/src/example/pegtl/json_coverage.cpp | 3 +- .../PEGTL/src/example/pegtl/json_errors.hpp | 3 +- .../PEGTL/src/example/pegtl/json_parse.cpp | 3 +- .../src/example/pegtl/json_print_debug.cpp | 3 +- .../src/example/pegtl/json_print_names.cpp | 3 +- .../PEGTL/src/example/pegtl/json_trace.cpp | 3 +- .../PEGTL/src/example/pegtl/json_unescape.hpp | 3 +- packages/PEGTL/src/example/pegtl/lua53.hpp | 3 +- .../PEGTL/src/example/pegtl/lua53_analyze.cpp | 3 +- .../PEGTL/src/example/pegtl/lua53_parse.cpp | 3 +- .../PEGTL/src/example/pegtl/modulus_match.cpp | 3 +- .../PEGTL/src/example/pegtl/parse_tree.cpp | 3 +- .../example/pegtl/parse_tree_user_state.cpp | 3 +- packages/PEGTL/src/example/pegtl/peg.peg | 37 -- .../PEGTL/src/example/pegtl/peg2pegtl.cpp | 545 ------------------ packages/PEGTL/src/example/pegtl/proto3.cpp | 130 +---- packages/PEGTL/src/example/pegtl/recover.cpp | 3 +- .../PEGTL/src/example/pegtl/s_expression.cpp | 3 +- packages/PEGTL/src/example/pegtl/sum.cpp | 3 +- .../PEGTL/src/example/pegtl/symbol_table.cpp | 3 +- .../PEGTL/src/example/pegtl/token_input.cpp | 3 +- packages/PEGTL/src/example/pegtl/unescape.cpp | 3 +- packages/PEGTL/src/example/pegtl/uri.cpp | 3 +- .../src/example/pegtl/uri_print_debug.cpp | 3 +- .../src/example/pegtl/uri_print_names.cpp | 3 +- .../PEGTL/src/example/pegtl/uri_trace.cpp | 3 +- packages/PEGTL/src/test/pegtl/CMakeLists.txt | 2 + .../PEGTL/src/test/pegtl/action_enable.cpp | 3 +- .../PEGTL/src/test/pegtl/action_match.cpp | 3 +- packages/PEGTL/src/test/pegtl/actions_one.cpp | 3 +- .../PEGTL/src/test/pegtl/actions_three.cpp | 3 +- packages/PEGTL/src/test/pegtl/actions_two.cpp | 3 +- packages/PEGTL/src/test/pegtl/argv_input.cpp | 3 +- .../PEGTL/src/test/pegtl/ascii_classes.cpp | 3 +- packages/PEGTL/src/test/pegtl/ascii_eol.cpp | 3 +- packages/PEGTL/src/test/pegtl/ascii_eolf.cpp | 3 +- .../PEGTL/src/test/pegtl/ascii_forty_two.cpp | 3 +- .../PEGTL/src/test/pegtl/ascii_identifier.cpp | 3 +- .../PEGTL/src/test/pegtl/ascii_istring.cpp | 3 +- .../PEGTL/src/test/pegtl/ascii_keyword.cpp | 3 +- .../PEGTL/src/test/pegtl/ascii_shebang.cpp | 3 +- .../PEGTL/src/test/pegtl/ascii_string.cpp | 3 +- packages/PEGTL/src/test/pegtl/ascii_three.cpp | 3 +- packages/PEGTL/src/test/pegtl/ascii_two.cpp | 3 +- .../PEGTL/src/test/pegtl/buffer_input.cpp | 3 +- .../test/pegtl/change_action_and_state.cpp | 3 +- .../test/pegtl/change_action_and_states.cpp | 3 +- .../PEGTL/src/test/pegtl/change_state.cpp | 3 +- .../PEGTL/src/test/pegtl/change_states.cpp | 3 +- packages/PEGTL/src/test/pegtl/check_bytes.cpp | 3 +- packages/PEGTL/src/test/pegtl/contains.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_alphabet.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_analyze.cpp | 3 +- .../src/test/pegtl/contrib_control_action.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_coverage.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_function.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_http.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_if_then.cpp | 3 +- .../src/test/pegtl/contrib_instantiate.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_integer.cpp | 9 +- packages/PEGTL/src/test/pegtl/contrib_iri.cpp | 58 ++ .../PEGTL/src/test/pegtl/contrib_json.cpp | 3 +- .../src/test/pegtl/contrib_parse_tree.cpp | 3 +- .../test/pegtl/contrib_parse_tree_to_dot.cpp | 3 +- .../src/test/pegtl/contrib_partial_trace.cpp | 3 +- .../src/test/pegtl/contrib_predicates.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_print.cpp | 3 +- .../src/test/pegtl/contrib_raw_string.cpp | 3 +- .../test/pegtl/contrib_remove_first_state.cpp | 3 +- .../test/pegtl/contrib_remove_last_states.cpp | 3 +- .../test/pegtl/contrib_rep_one_min_max.cpp | 3 +- .../src/test/pegtl/contrib_rep_string.cpp | 3 +- .../src/test/pegtl/contrib_separated_seq.cpp | 25 + .../src/test/pegtl/contrib_state_control.cpp | 3 +- .../src/test/pegtl/contrib_to_string.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_trace1.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_trace2.cpp | 3 +- .../PEGTL/src/test/pegtl/contrib_unescape.cpp | 3 +- packages/PEGTL/src/test/pegtl/contrib_uri.cpp | 3 +- .../PEGTL/src/test/pegtl/control_unwind.cpp | 3 +- .../PEGTL/src/test/pegtl/data_cstring.cpp | 3 +- packages/PEGTL/src/test/pegtl/demangle.cpp | 3 +- .../PEGTL/src/test/pegtl/discard_input.cpp | 3 +- .../PEGTL/src/test/pegtl/enable_control.cpp | 3 +- .../PEGTL/src/test/pegtl/error_message.cpp | 3 +- .../PEGTL/src/test/pegtl/file_cstream.cpp | 3 +- packages/PEGTL/src/test/pegtl/file_file.cpp | 3 +- .../PEGTL/src/test/pegtl/file_istream.cpp | 3 +- packages/PEGTL/src/test/pegtl/file_mmap.cpp | 3 +- packages/PEGTL/src/test/pegtl/file_read.cpp | 3 +- ...\303\266\303\274\360\235\204\236_data.txt" | 11 + packages/PEGTL/src/test/pegtl/icu_general.cpp | 3 +- .../PEGTL/src/test/pegtl/internal_endian.cpp | 3 +- .../src/test/pegtl/internal_file_mapper.cpp | 3 +- .../src/test/pegtl/internal_file_opener.cpp | 3 +- packages/PEGTL/src/test/pegtl/limit_bytes.cpp | 3 +- packages/PEGTL/src/test/pegtl/limit_depth.cpp | 3 +- packages/PEGTL/src/test/pegtl/main.hpp | 3 +- packages/PEGTL/src/test/pegtl/parse_error.cpp | 3 +- .../PEGTL/src/test/pegtl/pegtl_string_t.cpp | 3 +- packages/PEGTL/src/test/pegtl/position.cpp | 3 +- .../PEGTL/src/test/pegtl/restart_input.cpp | 3 +- packages/PEGTL/src/test/pegtl/result_type.hpp | 3 +- packages/PEGTL/src/test/pegtl/rule_action.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_apply.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_apply0.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_at.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_bof.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_bol.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_bytes.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_control.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_disable.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_discard.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_enable.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_eof.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_failure.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_if_apply.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_if_must.cpp | 3 +- .../src/test/pegtl/rule_if_must_else.cpp | 3 +- .../src/test/pegtl/rule_if_then_else.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_list.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_list_must.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_list_tail.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_minus.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_must.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_not_at.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_opt.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_opt_must.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_pad.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_pad_opt.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_plus.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_raise.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_rematch.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_rep.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_rep_max.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_rep_min.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_rep_min_max.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_rep_opt.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_require.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_seq.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_sor.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_star.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_star_must.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_state.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_success.cpp | 3 +- .../PEGTL/src/test/pegtl/rule_try_catch.cpp | 3 +- packages/PEGTL/src/test/pegtl/rule_until.cpp | 3 +- packages/PEGTL/src/test/pegtl/test.hpp | 3 +- packages/PEGTL/src/test/pegtl/test_empty.cpp | 3 +- packages/PEGTL/src/test/pegtl/test_result.cpp | 3 +- packages/PEGTL/src/test/pegtl/test_setup.cpp | 3 +- .../PEGTL/src/test/pegtl/uint16_general.cpp | 3 +- .../PEGTL/src/test/pegtl/uint32_general.cpp | 3 +- .../PEGTL/src/test/pegtl/uint64_general.cpp | 3 +- .../PEGTL/src/test/pegtl/uint8_general.cpp | 3 +- .../PEGTL/src/test/pegtl/utf16_general.cpp | 3 +- .../PEGTL/src/test/pegtl/utf32_general.cpp | 3 +- .../PEGTL/src/test/pegtl/utf8_general.cpp | 3 +- packages/PEGTL/src/test/pegtl/verify_char.hpp | 3 +- packages/PEGTL/src/test/pegtl/verify_file.hpp | 3 +- packages/PEGTL/src/test/pegtl/verify_ifmt.hpp | 3 +- packages/PEGTL/src/test/pegtl/verify_impl.hpp | 3 +- packages/PEGTL/src/test/pegtl/verify_meta.hpp | 3 +- packages/PEGTL/src/test/pegtl/verify_rule.hpp | 3 +- packages/PEGTL/src/test/pegtl/verify_seqs.hpp | 3 +- packages/PEGTL/src/test/pegtl/visit.cpp | 3 +- 397 files changed, 1458 insertions(+), 1304 deletions(-) delete mode 100644 packages/PEGTL/LICENSE create mode 100644 packages/PEGTL/LICENSE_1_0.txt create mode 100644 packages/PEGTL/include/tao/pegtl/contrib/iri.hpp delete mode 100644 packages/PEGTL/include/tao/pegtl/contrib/peg.hpp create mode 100644 packages/PEGTL/include/tao/pegtl/contrib/proto3.hpp create mode 100644 packages/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp create mode 100644 packages/PEGTL/src/example/pegtl/iri.cpp delete mode 100644 packages/PEGTL/src/example/pegtl/peg.peg delete mode 100644 packages/PEGTL/src/example/pegtl/peg2pegtl.cpp create mode 100644 packages/PEGTL/src/test/pegtl/contrib_iri.cpp create mode 100644 packages/PEGTL/src/test/pegtl/contrib_separated_seq.cpp create mode 100644 "packages/PEGTL/src/test/pegtl/file_\303\244\303\266\303\274\360\235\204\236_data.txt" diff --git a/packages/PEGTL/.clang-format b/packages/PEGTL/.clang-format index c423ca274..a3f254129 100644 --- a/packages/PEGTL/.clang-format +++ b/packages/PEGTL/.clang-format @@ -1,6 +1,9 @@ -# the official .clang-format style for https://github.com/taocpp -# -# clang-format -i -style=file $(find . -name '[^.]*.[hc]pp') +# The Art of C++ +# https://github.com/PEGTL + +# Copyright (c) 2016-2021 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) Language: Cpp Standard: Latest diff --git a/packages/PEGTL/.clang-tidy b/packages/PEGTL/.clang-tidy index cad3a9f3f..b98e0d8b5 100644 --- a/packages/PEGTL/.clang-tidy +++ b/packages/PEGTL/.clang-tidy @@ -1,3 +1,10 @@ +# The Art of C++ +# https://github.com/PEGTL + +# Copyright (c) 2016-2021 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) + Checks: >- bugprone-*, cppcoreguidelines-slicing, diff --git a/packages/PEGTL/.gitrepo b/packages/PEGTL/.gitrepo index 873dce466..279480bff 100644 --- a/packages/PEGTL/.gitrepo +++ b/packages/PEGTL/.gitrepo @@ -6,7 +6,7 @@ [subrepo] remote = git@github.com:taocpp/PEGTL.git branch = main - commit = fbfebc50d0b84a1fcd40e083a6e630fe815e21a7 - parent = 8bade9551beef13a194e250386ff539c38cef805 + commit = bf4487c9793121e483291c4e516cec3e5c1c17b5 + parent = e00b72ebcd9d2add12cfe0e6fe4d114a7858dfa5 method = merge cmdver = 0.4.3 diff --git a/packages/PEGTL/CMakeLists.txt b/packages/PEGTL/CMakeLists.txt index c2ee336f3..2233099fa 100644 --- a/packages/PEGTL/CMakeLists.txt +++ b/packages/PEGTL/CMakeLists.txt @@ -147,7 +147,7 @@ install(EXPORT pegtl-targets install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pegtl-config-version.cmake DESTINATION ${PEGTL_INSTALL_CMAKE_DIR}) install(DIRECTORY include/ DESTINATION ${PEGTL_INSTALL_INCLUDE_DIR}) -install(FILES LICENSE DESTINATION ${PEGTL_INSTALL_DOC_DIR}) +install(FILES LICENSE_1_0.txt DESTINATION ${PEGTL_INSTALL_DOC_DIR}) export(EXPORT pegtl-targets FILE ${pegtl_BINARY_DIR}/pegtl-targets.cmake diff --git a/packages/PEGTL/LICENSE b/packages/PEGTL/LICENSE deleted file mode 100644 index c98159082..000000000 --- a/packages/PEGTL/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2007-2021 Dr. Colin Hirsch and Daniel Frey - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/PEGTL/LICENSE_1_0.txt b/packages/PEGTL/LICENSE_1_0.txt new file mode 100644 index 000000000..36b7cd93c --- /dev/null +++ b/packages/PEGTL/LICENSE_1_0.txt @@ -0,0 +1,23 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/packages/PEGTL/Makefile b/packages/PEGTL/Makefile index 3ecca070e..773c525bb 100644 --- a/packages/PEGTL/Makefile +++ b/packages/PEGTL/Makefile @@ -1,6 +1,9 @@ # The Art of C++ +# https://github.com/PEGTL + # Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -# Please see LICENSE for license or visit https://github.com/taocpp/PEGTL +# 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) .SUFFIXES: .SECONDARY: @@ -61,31 +64,6 @@ build/%.d: %.cpp Makefile build/%: %.cpp build/%.d $(CXX) $(CXXSTD) -Iinclude $(CPPFLAGS) $(CXXFLAGS) $< $(LDFLAGS) -o $@ -.PHONY: amalgamate -amalgamate: build/amalgamated/pegtl.hpp - -build/amalgamated/pegtl.hpp: $(HEADERS) - @mkdir -p $(@D) - @rm -rf build/include - @cp -a include build/ - @rm -rf build/include/tao/pegtl/contrib/icu - @sed -i -e 's%^#%//#%g' $$(find build/include -name '*.hpp') - @sed -i -e 's%^//#include "%#include "%g' $$(find build/include -name '*.hpp') - @for i in $$(find build/include -name '*.hpp'); do echo "#pragma once" >tmp.out; echo "#line 1" >>tmp.out; cat $$i >>tmp.out; mv tmp.out $$i; done - @echo '#include "tao/pegtl.hpp"' >build/include/amalgamated.hpp - @( cd build/include ; for i in tao/pegtl/contrib/*.hpp; do echo "#include \"$$i\""; done ) >>build/include/amalgamated.hpp - @echo -e "/*\n\nWelcome to the Parsing Expression Grammar Template Library (PEGTL)." >$@ - @echo -e "See https://github.com/taocpp/PEGTL/ for more information, documentation, etc.\n" >>$@ - @echo -e "The library is licensed as follows:\n" >>$@ - @cat LICENSE >>$@ - @echo -e "\n*/\n" >>$@ - @( cd build/include ; g++ -E -C -nostdinc amalgamated.hpp ) >>$@ - @sed -i -e 's%^//#%#%g' $@ - @sed -i -e 's%^# \([0-9]* "[^"]*"\).*%#line \1%g' $@ - @sed -i -e 's%^// Copyright.*%%g' $@ - @sed -i -e 's%^// Please.*%%g' $@ - @echo "Generated/updated $@ successfully." - ifeq ($(findstring $(MAKECMDGOALS),clean),) -include $(DEPENDS) endif diff --git a/packages/PEGTL/README.md b/packages/PEGTL/README.md index 0ee9ddfe6..399b2bb3a 100644 --- a/packages/PEGTL/README.md +++ b/packages/PEGTL/README.md @@ -136,16 +136,17 @@ The PEGTL is part of [The Art of C++](https://taocpp.github.io/). ## License -<a href="https://opensource.org/licenses/MIT"><img align="right" src="https://opensource.org/files/OSIApproved.png" width="150" hspace="20" alt="Open Source Initiative"></a> +<a href="https://opensource.org/licenses/BSL-1.0"><img align="right" src="https://opensource.org/files/OSIApproved.png" width="150" hspace="20" alt="Open Source Initiative"></a> + +Copyright (c) 2007-2021 Daniel Frey and Dr. Colin Hirsch The PEGTL is certified [Open Source](http://www.opensource.org/docs/definition.html) software. -It may be used for any purpose, including commercial purposes, at absolutely no cost. -It is distributed under the terms of the [MIT license](http://www.opensource.org/licenses/mit-license.html) reproduced here. +It is [licensed](https://pdimov.github.io/blog/2020/09/06/why-use-the-boost-license/) under the terms of the [Boost Software License, Version 1.0](https://www.boost.org/LICENSE_1_0.txt) reproduced here. -> Copyright (c) 2007-2021 Dr. Colin Hirsch and Daniel Frey +> Boost Software License - Version 1.0 - August 17th, 2003 > -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +> Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: > -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +> The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. > -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/PEGTL/doc/Actions-and-States.md b/packages/PEGTL/doc/Actions-and-States.md index 4c8101682..272b8ac46 100644 --- a/packages/PEGTL/doc/Actions-and-States.md +++ b/packages/PEGTL/doc/Actions-and-States.md @@ -383,6 +383,7 @@ The [`state` rule](Rule-Reference.md#state-s-r-) behaves similarly to [`seq`](Ru This new object is used replaces the current state(s) for the remainder of the implicit [`seq`](Rule-Reference.md#seq-r-). The new object is constructed with a const-reference to the current input of the parsing run, and all previous states, if any, as arguments. +If no such constructor exists, the new object is default constructed. If the implicit [`seq`](Rule-Reference.md#seq-r-) of the sub-rules succeeds, then, by default, a member function named `success()` is called on this "new" object, receiving the same arguments as the constructor. At this point the input will be advanced by whatever the sub-rules have consumed in the meantime. @@ -399,7 +400,7 @@ The differences are summarised in this table; note that `change_state` is more s | Feature | `change_state` | `change_states` | | --- | --- | --- | | Number of new states | one | any | -| Construction of new states | with input and old states | default | +| Construction of new states | optionally with input and old states | default | | Success function on action | if not on new state | required | With `change_state` only a single new state type can be given as template parameter, and only a single new state will be created. @@ -603,4 +604,10 @@ Note that deriving from `require_apply` or `require_apply0` is optional and usua See the [section on legacy-style action rules](Rule-Reference.md#action-rules). +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Changelog.md b/packages/PEGTL/doc/Changelog.md index eed13ec42..aca8f740a 100644 --- a/packages/PEGTL/doc/Changelog.md +++ b/packages/PEGTL/doc/Changelog.md @@ -1,5 +1,25 @@ # Changelog +## 3.3.0 + +**Not yet released** + +* Switched to Boost Software License, Version 1.0. +* Removed support for building an amalgamated header. +* Deprecated the `TAO_PEGTL_NAMESPACE` macro. + * Will be removed in version 4.0.0. + +## 3.2.2 + +Released 2021-10-22 + +* Added rule [`odigit`](Rule-Reference.md#odigit) for octal digits. +* Enabled default-constructed state in `state<>`, `change_state<>`, and `change_action_and_state<>`. +* Changed rules in [`tao/pegtl/contrib/integer.hpp`](Contrib-and-Examples.md#taopegtlcontribintegerhpp) to not throw by default. +* Added [`tao/pegtl/contrib/separated_seq.hpp`](Contrib-and-Examples.md#taopegtlcontribseparated_seqhpp). +* Added `tao/pegtl/contrib/iri.hpp` grammar for IRIs. +* Added `tao/pegtl/contrib/proto3.hpp` grammar for protocol buffer v3. + ## 3.2.1 Released 2021-07-31 @@ -627,4 +647,10 @@ Released 2008 Development of the PEGTL started in November 2007 as an experiment in C++0x. It is based on ideas from the YARD library by Christopher Diggins. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2007-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Contrib-and-Examples.md b/packages/PEGTL/doc/Contrib-and-Examples.md index f5b658e75..31f9035c1 100644 --- a/packages/PEGTL/doc/Contrib-and-Examples.md +++ b/packages/PEGTL/doc/Contrib-and-Examples.md @@ -70,6 +70,11 @@ For all questions and remarks contact us at **taocpp(at)icemx.net**. * Contains optimised version of `rep_min_max< Min, Max, ascii::one< C > >`: * Rule `ascii::rep_one_min_max< Min, Max, C >`. +###### `<tao/pegtl/contrib/separated_seq.hpp>` + +* Allows to parse rules separated by a separator. +* Rule `separated_seq< S, A, B, C, D >` is equivalent to `seq< A, S, B, S, C, S, D >`. + ###### `<tao/pegtl/contrib/to_string.hpp>` Utility function `to_string<>()` that converts template classes with arbitrary sequences of characters as template arguments into a `std::string` that contains these characters. @@ -207,4 +212,10 @@ Uses the building blocks from `<tao/pegtl/contrib/unescape.hpp>` to show how to Shows how to use the included [tracer control](#taopegtlcontribtracerhpp), here together with the URI grammar from `<tao/pegtl/contrib/uri.hpp>`. Invoked with one or more URIs as command line arguments will attempt to parse the URIs while printing trace information to `std::cerr`. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Control-and-Debug.md b/packages/PEGTL/doc/Control-and-Debug.md index 3ff6a8878..10fa8f80a 100644 --- a/packages/PEGTL/doc/Control-and-Debug.md +++ b/packages/PEGTL/doc/Control-and-Debug.md @@ -144,4 +144,10 @@ Just like the action class template, a custom control class template can be used The latter requires the use of a [custom action](Actions-and-States.md). Deriving the specialisation of the custom action for `my_rule` from `tao::pegtl::change_control< my_control >` will switch the current control to `my_control` before attempting to match `my_rule`. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Errors-and-Exceptions.md b/packages/PEGTL/doc/Errors-and-Exceptions.md index 7b8f018d8..a0b16d24c 100644 --- a/packages/PEGTL/doc/Errors-and-Exceptions.md +++ b/packages/PEGTL/doc/Errors-and-Exceptions.md @@ -214,4 +214,10 @@ struct error It is advisable to choose the error points in the grammar with prudence. This choice becoming particularly cumbersome and/or resulting in a large number of error points might be an indication of the grammar needing some kind of simplification or restructuring. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Getting-Started.md b/packages/PEGTL/doc/Getting-Started.md index 1deceba9f..fbf71cbd3 100644 --- a/packages/PEGTL/doc/Getting-Started.md +++ b/packages/PEGTL/doc/Getting-Started.md @@ -283,4 +283,10 @@ Typically, the following pattern helps to print the exceptions in a human friend For more information see [Errors and Exceptions](Errors-and-Exceptions.md). +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Grammar-Analysis.md b/packages/PEGTL/doc/Grammar-Analysis.md index 629982d8e..94bb40aef 100644 --- a/packages/PEGTL/doc/Grammar-Analysis.md +++ b/packages/PEGTL/doc/Grammar-Analysis.md @@ -124,4 +124,10 @@ In practice it appears to catch all cases of left-recursion that are typical for False positives are a theoretical problem in that, while relatively easy to trigger, they are not usually encountered when dealing with real world grammars. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Inputs-and-Parsing.md b/packages/PEGTL/doc/Inputs-and-Parsing.md index b2bb15f44..96948728c 100644 --- a/packages/PEGTL/doc/Inputs-and-Parsing.md +++ b/packages/PEGTL/doc/Inputs-and-Parsing.md @@ -554,4 +554,10 @@ Trying to call any of those functions on `buffer_input<>`-based instances will l All input classes support [deduction guides](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction), e.g. instead of `file_input<> in( "filename.txt" )` one can use `file_input in( "filename.txt" )`. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Installing-and-Using.md b/packages/PEGTL/doc/Installing-and-Using.md index f2e56051d..007987116 100644 --- a/packages/PEGTL/doc/Installing-and-Using.md +++ b/packages/PEGTL/doc/Installing-and-Using.md @@ -19,7 +19,6 @@ * [Embedding in Binaries](#embedding-in-binaries) * [Embedding in Libraries](#embedding-in-libraries) * [Embedding in Library Interfaces](#embedding-in-library-interfaces) -* [Single Header Version](#single-header-version) ## Requirements @@ -98,8 +97,6 @@ Note that some of the listed packages are not updated regularly. ## Using Vcpkg -[](https://repology.org/project/pegtl/versions) - You can download and install the PEGTL using the [Vcpkg] package manager: ```bash @@ -301,20 +298,13 @@ above; alternatively `include/tao/pegtl/config.hpp` can be directly modified. A practical example of how the result looks like can be found in our own header-only JSON library [taoJSON](https://github.com/taocpp/json/). -## Single Header Version - -You can generate a single-header-version of the PEGTL with the included `Makefile`. -In a Unix-shell, the following command will achieve this: - -```sh -$ make amalgamate -``` +--- -The above will generate a `build/amalgamated/pegtl.hpp` which will consist of -the headers `tao/pegtl.hpp`, their dependencies, and all headers in -`tao/pegtl/contrib/` except for the headers in `tao/pegtl/contrib/icu/`. +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt [Vcpkg]: https://github.com/Microsoft/vcpkg [Vcpkg documentation]: https://github.com/Microsoft/vcpkg/tree/master/docs/index.md diff --git a/packages/PEGTL/doc/Meta-Data-and-Visit.md b/packages/PEGTL/doc/Meta-Data-and-Visit.md index 74f8672ca..bed412efa 100644 --- a/packages/PEGTL/doc/Meta-Data-and-Visit.md +++ b/packages/PEGTL/doc/Meta-Data-and-Visit.md @@ -147,4 +147,10 @@ struct coverage_result As usual, unless otherwise indicated, all functions and data structure are in the namespace `tao::pegtl`. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Migration-Guide.md b/packages/PEGTL/doc/Migration-Guide.md index 91171f3b4..19f543d97 100644 --- a/packages/PEGTL/doc/Migration-Guide.md +++ b/packages/PEGTL/doc/Migration-Guide.md @@ -56,4 +56,10 @@ Please contact the authors at `taocpp(at)icemx.net` for any further questions wh There were [many important changes](Changelog.md#100) leading up to version 1.0.0. Please contact the authors at `taocpp(at)icemx.net` for any further questions when updating the PEGTL. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Parse-Tree.md b/packages/PEGTL/doc/Parse-Tree.md index 8e668f9f8..e82f6cf7d 100644 --- a/packages/PEGTL/doc/Parse-Tree.md +++ b/packages/PEGTL/doc/Parse-Tree.md @@ -240,4 +240,10 @@ struct my_node The parse tree uses a rule's meta data supplied by [`subs_t`](Meta-Data-and-Visit.md#sub-rules) for internal optimizations. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Performance-Notes.md b/packages/PEGTL/doc/Performance-Notes.md index 6acf14257..bad388626 100644 --- a/packages/PEGTL/doc/Performance-Notes.md +++ b/packages/PEGTL/doc/Performance-Notes.md @@ -42,4 +42,10 @@ However with `-O0`, the optimised `at_one< '"' >` was faster by 5-10% in a [JSON We still need to test whether the compiler manages to perform the same optimisation in more complex cases. +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/README.md b/packages/PEGTL/doc/README.md index 7c028ccae..88bedb592 100644 --- a/packages/PEGTL/doc/README.md +++ b/packages/PEGTL/doc/README.md @@ -20,7 +20,6 @@ * [Embedding in Binaries](Installing-and-Using.md#embedding-in-binaries) * [Embedding in Libraries](Installing-and-Using.md#embedding-in-libraries) * [Embedding in Library Interfaces](Installing-and-Using.md#embedding-in-library-interfaces) - * [Single Header Version](Installing-and-Using.md#single-header-version) * [Rules and Grammars](Rules-and-Grammars.md) * [Combining Existing Rules](Rules-and-Grammars.md#combining-existing-rules) * [Toy S-Expression Grammar](Rules-and-Grammars.md#toy-s-expression-grammar) @@ -227,6 +226,7 @@ * [`not_range< C, D >`](Rule-Reference.md#not_range-c-d--2) <sup>[(binary rules)](Rule-Reference.md#binary-rules)</sup> * [`nul`](Rule-Reference.md#nul) <sup>[(ascii rules)](Rule-Reference.md#ascii-rules)</sup> * [`numeric_type< V >`](Rule-Reference.md#numeric_type-v-) <sup>[(icu rules)](Rule-Reference.md#icu-rules-for-enumerated-properties)</sup> +* [`odigit`](Rule-Reference.md#odigit) <sup>[(ascii rules)](Rule-Reference.md#ascii-rules)</sup> * [`one< C... >`](Rule-Reference.md#one-c-) <sup>[(ascii rules)](Rule-Reference.md#ascii-rules)</sup> * [`one< C... >`](Rule-Reference.md#one-c--1) <sup>[(unicode rules)](Rule-Reference.md#unicode-rules)</sup> * [`one< C... >`](Rule-Reference.md#one-c--2) <sup>[(binary rules)](Rule-Reference.md#binary-rules)</sup> @@ -300,4 +300,10 @@ * [`xid_continue`](Rule-Reference.md#xid_continue) <sup>[(icu rules)](Rule-Reference.md#icu-rules-for-binary-properties)</sup> * [`xid_start`](Rule-Reference.md#xid_start) <sup>[(icu rules)](Rule-Reference.md#icu-rules-for-binary-properties)</sup> +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/doc/Rule-Reference.md b/packages/PEGTL/doc/Rule-Reference.md index 79dd46ccf..b1a6757a6 100644 --- a/packages/PEGTL/doc/Rule-Reference.md +++ b/packages/PEGTL/doc/Rule-Reference.md @@ -723,6 +723,13 @@ ASCII rules do not usually rely on other rules. * [Equivalent] to `one< '\0' >`. - `ascii::nul::rule_t` is `internal::one< result_on_found::success, internal::peek_char, 0 >` +###### `odigit` + +* Matches and consumes a single ASCII octal digit character. +* [Equivalent] to `range< '0', '7' >`. +* [Meta data] and [implementation] mapping: + - `ascii::digit::rule_t` is `internal::range< internal::result_on_found::success, internal::peek_char, '0', '7' >` + ###### `one< C... >` * Succeeds when the input is not empty, and: @@ -1542,7 +1549,13 @@ Binary rules do not rely on other rules. * [`xid_continue`](#xid_continue) <sup>[(icu rules)](#icu-rules-for-binary-properties)</sup> * [`xid_start`](#xid_start) <sup>[(icu rules)](#icu-rules-for-binary-properties)</sup> +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt [Equivalent]: #equivalence [implementation]: #implementation diff --git a/packages/PEGTL/doc/Rules-and-Grammars.md b/packages/PEGTL/doc/Rules-and-Grammars.md index 675ebfc34..f2242c0f4 100644 --- a/packages/PEGTL/doc/Rules-and-Grammars.md +++ b/packages/PEGTL/doc/Rules-and-Grammars.md @@ -398,4 +398,10 @@ long literal id was: "fraggle" long literal body was: "[foo[" ``` +--- + +This document is part of the [PEGTL](https://github.com/taocpp/PEGTL). + Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey +Distributed under the Boost Software License, Version 1.0<br> +See accompanying file [LICENSE_1_0.txt](../LICENSE_1_0.txt) or copy at https://www.boost.org/LICENSE_1_0.txt diff --git a/packages/PEGTL/include/tao/pegtl.hpp b/packages/PEGTL/include/tao/pegtl.hpp index 35cc4c6dc..982d0759a 100644 --- a/packages/PEGTL/include/tao/pegtl.hpp +++ b/packages/PEGTL/include/tao/pegtl.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_HPP #define TAO_PEGTL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/apply_mode.hpp b/packages/PEGTL/include/tao/pegtl/apply_mode.hpp index 10b98a666..e4517c6e8 100644 --- a/packages/PEGTL/include/tao/pegtl/apply_mode.hpp +++ b/packages/PEGTL/include/tao/pegtl/apply_mode.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_APPLY_MODE_HPP #define TAO_PEGTL_APPLY_MODE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/argv_input.hpp b/packages/PEGTL/include/tao/pegtl/argv_input.hpp index 89eb3d024..0518082ad 100644 --- a/packages/PEGTL/include/tao/pegtl/argv_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/argv_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_ARGV_INPUT_HPP #define TAO_PEGTL_ARGV_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/ascii.hpp b/packages/PEGTL/include/tao/pegtl/ascii.hpp index 8e7b19e29..73bb2cf50 100644 --- a/packages/PEGTL/include/tao/pegtl/ascii.hpp +++ b/packages/PEGTL/include/tao/pegtl/ascii.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_ASCII_HPP #define TAO_PEGTL_ASCII_HPP @@ -30,6 +31,7 @@ namespace TAO_PEGTL_NAMESPACE template< char... Cs > struct not_one : internal::one< internal::result_on_found::failure, internal::peek_char, Cs... > {}; template< char Lo, char Hi > struct not_range : internal::range< internal::result_on_found::failure, internal::peek_char, Lo, Hi > {}; struct nul : internal::one< internal::result_on_found::success, internal::peek_char, char( 0 ) > {}; + struct odigit : internal::range< internal::result_on_found::success, internal::peek_char, '0', '7' > {}; template< char... Cs > struct one : internal::one< internal::result_on_found::success, internal::peek_char, Cs... > {}; struct print : internal::range< internal::result_on_found::success, internal::peek_char, char( 32 ), char( 126 ) > {}; template< char Lo, char Hi > struct range : internal::range< internal::result_on_found::success, internal::peek_char, Lo, Hi > {}; diff --git a/packages/PEGTL/include/tao/pegtl/buffer_input.hpp b/packages/PEGTL/include/tao/pegtl/buffer_input.hpp index 0a0ea7494..4ea21e7c6 100644 --- a/packages/PEGTL/include/tao/pegtl/buffer_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/buffer_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_BUFFER_INPUT_HPP #define TAO_PEGTL_BUFFER_INPUT_HPP @@ -160,7 +161,7 @@ namespace TAO_PEGTL_NAMESPACE std::terminate(); #endif } - if( const auto r = m_reader( m_end, (std::min)( buffer_free_after_end(), (std::max)( amount - buffer_occupied(), Chunk ) ) ) ) { + if( const auto r = m_reader( m_end, ( std::min )( buffer_free_after_end(), ( std::max )( amount - buffer_occupied(), Chunk ) ) ) ) { m_end += r; } } diff --git a/packages/PEGTL/include/tao/pegtl/change_action.hpp b/packages/PEGTL/include/tao/pegtl/change_action.hpp index 6e049ea95..75496d45f 100644 --- a/packages/PEGTL/include/tao/pegtl/change_action.hpp +++ b/packages/PEGTL/include/tao/pegtl/change_action.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CHANGE_ACTION_HPP #define TAO_PEGTL_CHANGE_ACTION_HPP diff --git a/packages/PEGTL/include/tao/pegtl/change_action_and_state.hpp b/packages/PEGTL/include/tao/pegtl/change_action_and_state.hpp index fb67181e1..248c6fedb 100644 --- a/packages/PEGTL/include/tao/pegtl/change_action_and_state.hpp +++ b/packages/PEGTL/include/tao/pegtl/change_action_and_state.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CHANGE_ACTION_AND_STATE_HPP #define TAO_PEGTL_CHANGE_ACTION_AND_STATE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/change_action_and_states.hpp b/packages/PEGTL/include/tao/pegtl/change_action_and_states.hpp index 6c452e04b..9d0614f2f 100644 --- a/packages/PEGTL/include/tao/pegtl/change_action_and_states.hpp +++ b/packages/PEGTL/include/tao/pegtl/change_action_and_states.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CHANGE_ACTION_AND_STATES_HPP #define TAO_PEGTL_CHANGE_ACTION_AND_STATES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/change_control.hpp b/packages/PEGTL/include/tao/pegtl/change_control.hpp index b77a23804..e825e2359 100644 --- a/packages/PEGTL/include/tao/pegtl/change_control.hpp +++ b/packages/PEGTL/include/tao/pegtl/change_control.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CHANGE_CONTROL_HPP #define TAO_PEGTL_CHANGE_CONTROL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/change_state.hpp b/packages/PEGTL/include/tao/pegtl/change_state.hpp index 9169c078f..549ff4d7b 100644 --- a/packages/PEGTL/include/tao/pegtl/change_state.hpp +++ b/packages/PEGTL/include/tao/pegtl/change_state.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CHANGE_STATE_HPP #define TAO_PEGTL_CHANGE_STATE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/change_states.hpp b/packages/PEGTL/include/tao/pegtl/change_states.hpp index 4ec26dd34..59835c266 100644 --- a/packages/PEGTL/include/tao/pegtl/change_states.hpp +++ b/packages/PEGTL/include/tao/pegtl/change_states.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CHANGE_STATES_HPP #define TAO_PEGTL_CHANGE_STATES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/config.hpp b/packages/PEGTL/include/tao/pegtl/config.hpp index f1a3b8874..a58f22eb0 100644 --- a/packages/PEGTL/include/tao/pegtl/config.hpp +++ b/packages/PEGTL/include/tao/pegtl/config.hpp @@ -1,10 +1,13 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONFIG_HPP #define TAO_PEGTL_CONFIG_HPP -#if !defined( TAO_PEGTL_NAMESPACE ) +#if defined( TAO_PEGTL_NAMESPACE ) +#pragma message( "TAO_PEGTL_NAMESPACE is deprecated" ) +#else #define TAO_PEGTL_NAMESPACE tao::pegtl #endif diff --git a/packages/PEGTL/include/tao/pegtl/contrib/abnf.hpp b/packages/PEGTL/include/tao/pegtl/contrib/abnf.hpp index df5f39daf..6778f7a10 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/abnf.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/abnf.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ABNF_HPP #define TAO_PEGTL_CONTRIB_ABNF_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/add_state.hpp b/packages/PEGTL/include/tao/pegtl/contrib/add_state.hpp index fc3c46fbf..be91cd89c 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/add_state.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/add_state.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ADD_STATE_HPP #define TAO_PEGTL_CONTRIB_ADD_STATE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/alphabet.hpp b/packages/PEGTL/include/tao/pegtl/contrib/alphabet.hpp index 1a9c24dbf..798530e05 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/alphabet.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/alphabet.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ALPHABET_HPP #define TAO_PEGTL_CONTRIB_ALPHABET_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/analyze.hpp b/packages/PEGTL/include/tao/pegtl/contrib/analyze.hpp index 17c2a58df..6b4b093b7 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/analyze.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/analyze.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ANALYZE_HPP #define TAO_PEGTL_CONTRIB_ANALYZE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/analyze_traits.hpp b/packages/PEGTL/include/tao/pegtl/contrib/analyze_traits.hpp index 1d82cf643..b835098fb 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/analyze_traits.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/analyze_traits.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ANALYZE_TRAITS_HPP #define TAO_PEGTL_CONTRIB_ANALYZE_TRAITS_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/check_bytes.hpp b/packages/PEGTL/include/tao/pegtl/contrib/check_bytes.hpp index 84333c7d7..cfd313db7 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/check_bytes.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/check_bytes.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_CHECK_BYTES_HPP #define TAO_PEGTL_CONTRIB_CHECK_BYTES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/control_action.hpp b/packages/PEGTL/include/tao/pegtl/contrib/control_action.hpp index 06d61e295..239e6213b 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/control_action.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/control_action.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_CONTROL_ACTION_HPP #define TAO_PEGTL_CONTRIB_CONTROL_ACTION_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/coverage.hpp b/packages/PEGTL/include/tao/pegtl/contrib/coverage.hpp index 14d32ffcc..bfa75424f 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/coverage.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/coverage.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_COVERAGE_HPP #define TAO_PEGTL_CONTRIB_COVERAGE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/forward.hpp b/packages/PEGTL/include/tao/pegtl/contrib/forward.hpp index d60f9b54b..aa9f351e4 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/forward.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/forward.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_FORWARD_HPP #define TAO_PEGTL_CONTRIB_FORWARD_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/function.hpp b/packages/PEGTL/include/tao/pegtl/contrib/function.hpp index bed106047..86d535896 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/function.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/function.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_FUNCTION_HPP #define TAO_PEGTL_CONTRIB_FUNCTION_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/http.hpp b/packages/PEGTL/include/tao/pegtl/contrib/http.hpp index 1755f5469..e794a6dd7 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/http.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/http.hpp @@ -1,11 +1,12 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_HTTP_HPP #define TAO_PEGTL_CONTRIB_HTTP_HPP #if !defined( __cpp_exceptions ) -#error "Exception support required tao/pegtl/contrib/http.hpp" +#error "Exception support required for tao/pegtl/contrib/http.hpp" #else #include "../ascii.hpp" diff --git a/packages/PEGTL/include/tao/pegtl/contrib/icu/internal.hpp b/packages/PEGTL/include/tao/pegtl/contrib/icu/internal.hpp index 596a7eced..02976fd6d 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/icu/internal.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/icu/internal.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ICU_INTERNAL_HPP #define TAO_PEGTL_CONTRIB_ICU_INTERNAL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/icu/utf16.hpp b/packages/PEGTL/include/tao/pegtl/contrib/icu/utf16.hpp index b73db9927..1b04ad8b2 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/icu/utf16.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/icu/utf16.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ICU_UTF16_HPP #define TAO_PEGTL_CONTRIB_ICU_UTF16_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/icu/utf32.hpp b/packages/PEGTL/include/tao/pegtl/contrib/icu/utf32.hpp index 9781f567b..738b0e61f 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/icu/utf32.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/icu/utf32.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ICU_UTF32_HPP #define TAO_PEGTL_CONTRIB_ICU_UTF32_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/icu/utf8.hpp b/packages/PEGTL/include/tao/pegtl/contrib/icu/utf8.hpp index cf72da60a..7a7ced601 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/icu/utf8.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/icu/utf8.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_ICU_UTF8_HPP #define TAO_PEGTL_CONTRIB_ICU_UTF8_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/if_then.hpp b/packages/PEGTL/include/tao/pegtl/contrib/if_then.hpp index a17801355..897f55c02 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/if_then.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/if_then.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_IF_THEN_HPP #define TAO_PEGTL_CONTRIB_IF_THEN_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/instantiate.hpp b/packages/PEGTL/include/tao/pegtl/contrib/instantiate.hpp index ebf6e7f1c..ce8bb4c29 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/instantiate.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/instantiate.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INSTANTIATE_HPP #define TAO_PEGTL_CONTRIB_INSTANTIATE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/integer.hpp b/packages/PEGTL/include/tao/pegtl/contrib/integer.hpp index b8edf793c..2fbc7285d 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/integer.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/integer.hpp @@ -1,11 +1,12 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTEGER_HPP #define TAO_PEGTL_CONTRIB_INTEGER_HPP #if !defined( __cpp_exceptions ) -#error "Exception support required tao/pegtl/contrib/integer.hpp" +#error "Exception support required for tao/pegtl/contrib/integer.hpp" #else #include <cstdint> @@ -66,7 +67,7 @@ namespace TAO_PEGTL_NAMESPACE return ( '0' <= c ) && ( c <= '9' ); } - template< typename Integer, Integer Maximum = (std::numeric_limits< Integer >::max)() > + template< typename Integer, Integer Maximum = ( std::numeric_limits< Integer >::max )() > [[nodiscard]] constexpr bool accumulate_digit( Integer& result, const char digit ) noexcept { // Assumes that digit is a digit as per is_digit(); returns false on overflow. @@ -86,7 +87,7 @@ namespace TAO_PEGTL_NAMESPACE return true; } - template< typename Integer, Integer Maximum = (std::numeric_limits< Integer >::max)() > + template< typename Integer, Integer Maximum = ( std::numeric_limits< Integer >::max )() > [[nodiscard]] constexpr bool accumulate_digits( Integer& result, const std::string_view input ) noexcept { // Assumes input is a non-empty sequence of digits; returns false on overflow. @@ -99,7 +100,7 @@ namespace TAO_PEGTL_NAMESPACE return true; } - template< typename Integer, Integer Maximum = (std::numeric_limits< Integer >::max)() > + template< typename Integer, Integer Maximum = ( std::numeric_limits< Integer >::max )() > [[nodiscard]] constexpr bool convert_positive( Integer& result, const std::string_view input ) noexcept { // Assumes result == 0 and that input is a non-empty sequence of digits; returns false on overflow. @@ -115,7 +116,7 @@ namespace TAO_PEGTL_NAMESPACE static_assert( std::is_signed_v< Signed > ); using Unsigned = std::make_unsigned_t< Signed >; - constexpr Unsigned maximum = static_cast< Unsigned >( (std::numeric_limits< Signed >::max)() ) + 1; + constexpr Unsigned maximum = static_cast< Unsigned >( ( std::numeric_limits< Signed >::max )() ) + 1; Unsigned temporary = 0; if( accumulate_digits< Unsigned, maximum >( temporary, input ) ) { result = static_cast< Signed >( ~temporary ) + 1; @@ -124,7 +125,7 @@ namespace TAO_PEGTL_NAMESPACE return false; } - template< typename Unsigned, Unsigned Maximum = (std::numeric_limits< Unsigned >::max)() > + template< typename Unsigned, Unsigned Maximum = ( std::numeric_limits< Unsigned >::max )() > [[nodiscard]] constexpr bool convert_unsigned( Unsigned& result, const std::string_view input ) noexcept { // Assumes result == 0 and that input is a non-empty sequence of digits; returns false on overflow. @@ -167,7 +168,7 @@ namespace TAO_PEGTL_NAMESPACE template< typename ParseInput, typename Unsigned, - Unsigned Maximum = (std::numeric_limits< Unsigned >::max)() > + Unsigned Maximum = ( std::numeric_limits< Unsigned >::max )() > [[nodiscard]] bool match_and_convert_unsigned_with_maximum_throws( ParseInput& in, Unsigned& st ) { // Assumes st == 0. @@ -193,7 +194,7 @@ namespace TAO_PEGTL_NAMESPACE template< typename ParseInput, typename Unsigned, - Unsigned Maximum = (std::numeric_limits< Unsigned >::max)() > + Unsigned Maximum = ( std::numeric_limits< Unsigned >::max )() > [[nodiscard]] bool match_and_convert_unsigned_with_maximum_nothrow( ParseInput& in, Unsigned& st ) { // Assumes st == 0. @@ -304,7 +305,7 @@ namespace TAO_PEGTL_NAMESPACE } }; - template< typename Unsigned, Unsigned Maximum = (std::numeric_limits< Unsigned >::max)() > + template< typename Unsigned, Unsigned Maximum = ( std::numeric_limits< Unsigned >::max )() > struct maximum_rule { using rule_t = maximum_rule; @@ -320,7 +321,7 @@ namespace TAO_PEGTL_NAMESPACE } }; - template< typename Unsigned, Unsigned Maximum = (std::numeric_limits< Unsigned >::max)() > + template< typename Unsigned, Unsigned Maximum = ( std::numeric_limits< Unsigned >::max )() > struct maximum_rule_with_action { using rule_t = maximum_rule_with_action; diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/endian.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/endian.hpp index ac40ead58..fc997a311 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/endian.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/endian.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_ENDIAN_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_ENDIAN_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_gcc.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_gcc.hpp index 9eeb9ad71..d6a823155 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_gcc.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_gcc.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_ENDIAN_GCC_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_ENDIAN_GCC_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_win.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_win.hpp index 308dd3f01..ac21c8bcc 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_win.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/endian_win.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_ENDIAN_WIN_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_ENDIAN_WIN_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint.hpp index 2a6c8b307..f34baa4f7 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_PEEK_MASK_UINT_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_PEEK_MASK_UINT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint8.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint8.hpp index 15bd6926f..b57da1809 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint8.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint8.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_PEEK_MASK_UINT8_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_PEEK_MASK_UINT8_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint.hpp index 04925f5ac..62f7555b6 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UINT_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UINT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint8.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint8.hpp index 47b78efb2..9b437f4c6 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint8.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_uint8.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UINT8_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UINT8_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf16.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf16.hpp index c37b23918..6a5006c21 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf16.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf16.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UTF16_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UTF16_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf32.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf32.hpp index b48dc4d2c..0d78db0da 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf32.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/peek_utf32.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UTF32_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_PEEK_UTF32_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/read_uint.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/read_uint.hpp index 184c55ee0..8f294726a 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/read_uint.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/read_uint.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_READ_UINT_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_READ_UINT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/set_stack_guard.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/set_stack_guard.hpp index c0071e959..a7c89b5ec 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/set_stack_guard.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/set_stack_guard.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_SET_STACK_GUARD_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_SET_STACK_GUARD_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/internal/vector_stack_guard.hpp b/packages/PEGTL/include/tao/pegtl/contrib/internal/vector_stack_guard.hpp index 4b0cfbe8b..b143457f4 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/internal/vector_stack_guard.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/internal/vector_stack_guard.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_INTERNAL_VECTOR_STACK_GUARD_HPP #define TAO_PEGTL_CONTRIB_INTERNAL_VECTOR_STACK_GUARD_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/iri.hpp b/packages/PEGTL/include/tao/pegtl/contrib/iri.hpp new file mode 100644 index 000000000..defdc42fa --- /dev/null +++ b/packages/PEGTL/include/tao/pegtl/contrib/iri.hpp @@ -0,0 +1,107 @@ +// Copyright (c) 2021 Kelvin Hammond +// Copyright (c) 2021 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) + +#ifndef TAO_PEGTL_CONTRIB_IRI_HPP +#define TAO_PEGTL_CONTRIB_IRI_HPP + +#if !defined( __cpp_exceptions ) +#error "Exception support required for tao/pegtl/contrib/iri.hpp" +#else + +#include "../config.hpp" +#include "../rules.hpp" +#include "../utf8.hpp" + +#include "abnf.hpp" +#include "uri.hpp" + +namespace TAO_PEGTL_NAMESPACE::iri +{ + // IRI grammar according to RFC 3987. + + // This grammar is a direct PEG translation of the original URI grammar. + // It should be considered experimental -- in case of any issues, in particular + // missing rules for attached actions, please contact the developers. + + // Note that this grammar has multiple top-level rules. + + using uri::scheme; + using uri::port; + using uri::dslash; + using uri::IP_literal; + using uri::IPv4address; + using uri::pct_encoded; + using uri::sub_delims; + using uri::colon; + + // clang-format off + struct ucschar : utf8::ranges< + 0xA0, 0xD7FF, + 0xF900, 0xFDCF, + 0xFDF0, 0xFFEF, + 0x10000, 0x1FFFD, + 0x20000, 0x2FFFD, + 0x30000, 0x3FFFD, + 0x40000, 0x4FFFD, + 0x50000, 0x5FFFD, + 0x60000, 0x6FFFD, + 0x70000, 0x7FFFD, + 0x80000, 0x8FFFD, + 0x90000, 0x9FFFD, + 0xA0000, 0xAFFFD, + 0xB0000, 0xBFFFD, + 0xC0000, 0xCFFFD, + 0xD0000, 0xDFFFD, + 0xE1000, 0xEFFFD > {}; + + struct iprivate : utf8::ranges< 0xE000, 0xF8FF, 0xF0000, 0xFFFFD, 0x100000, 0x10FFFD > {}; + + struct iunreserved : sor< abnf::ALPHA, abnf::DIGIT, one< '-', '.', '_', '~' >, ucschar > {}; + + struct ipchar : sor< iunreserved, pct_encoded, sub_delims, one< ':', '@' > > {}; + + struct isegment : star< ipchar > {}; + struct isegment_nz : plus< ipchar > {}; + // non-zero-length segment without any colon ":" + struct isegment_nz_nc : plus< sor< iunreserved, pct_encoded, sub_delims, one< '@' > > > {}; + + struct ipath_abempty : star< one< '/' >, isegment > {}; + struct ipath_absolute : seq< one< '/' >, opt< isegment_nz, star< one< '/' >, isegment > > > {}; + struct ipath_noscheme : seq< isegment_nz_nc, star< one< '/' >, isegment > > {}; + struct ipath_rootless : seq< isegment_nz, star< one< '/' >, isegment > > {}; + struct ipath_empty : success {}; + + struct ipath : sor< ipath_noscheme, // begins with a non-colon segment + ipath_rootless, // begins with a segment + ipath_absolute, // begins with "/" but not "//" + ipath_abempty > // begins with "/" or is empty + {}; + + struct ireg_name : star< sor< iunreserved, pct_encoded, sub_delims > > {}; + + struct ihost : sor< IP_literal, IPv4address, ireg_name > {}; + struct iuserinfo : star< sor< iunreserved, pct_encoded, sub_delims, colon > > {}; + struct opt_iuserinfo : opt< iuserinfo, one< '@' > > {}; + struct iauthority : seq< opt_iuserinfo, ihost, opt< colon, port > > {}; + + struct iquery : star< sor< ipchar, iprivate, one< '/', '?' > > > {}; + struct ifragment : star< sor< ipchar, one< '/', '?' > > > {}; + + struct opt_iquery : opt_must< one< '?' >, iquery > {}; + struct opt_ifragment : opt_must< one< '#' >, ifragment > {}; + + struct ihier_part : sor< if_must< dslash, iauthority, ipath_abempty >, ipath_rootless, ipath_absolute, ipath_empty > {}; + struct irelative_part : sor< if_must< dslash, iauthority, ipath_abempty >, ipath_noscheme, ipath_absolute, ipath_empty > {}; + struct irelative_ref : seq< irelative_part, opt_iquery, opt_ifragment > {}; + + struct IRI : seq< scheme, one< ':' >, ihier_part, opt_iquery, opt_ifragment > {}; + struct IRI_reference : sor< IRI, irelative_ref > {}; + struct absolute_IRI : seq< scheme, one< ':' >, ihier_part, opt_iquery > {}; + // clang-format off + +} // namespace TAO_PEGTL_NAMESPACE::iri + +#endif +#endif diff --git a/packages/PEGTL/include/tao/pegtl/contrib/json.hpp b/packages/PEGTL/include/tao/pegtl/contrib/json.hpp index 027201ac8..e47aaae4b 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/json.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/json.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_JSON_HPP #define TAO_PEGTL_CONTRIB_JSON_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/json_pointer.hpp b/packages/PEGTL/include/tao/pegtl/contrib/json_pointer.hpp index 6230cfcea..5e920d720 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/json_pointer.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/json_pointer.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_JSON_POINTER_HPP #define TAO_PEGTL_CONTRIB_JSON_POINTER_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/limit_bytes.hpp b/packages/PEGTL/include/tao/pegtl/contrib/limit_bytes.hpp index cea99fc6f..1447e1fd5 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/limit_bytes.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/limit_bytes.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_LIMIT_BYTES_HPP #define TAO_PEGTL_CONTRIB_LIMIT_BYTES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/limit_depth.hpp b/packages/PEGTL/include/tao/pegtl/contrib/limit_depth.hpp index 447bebff7..a84e002ea 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/limit_depth.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/limit_depth.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_LIMIT_DEPTH_HPP #define TAO_PEGTL_CONTRIB_LIMIT_DEPTH_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/parse_tree.hpp b/packages/PEGTL/include/tao/pegtl/contrib/parse_tree.hpp index 2d83d557e..8de35b8cd 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/parse_tree.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/parse_tree.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_PARSE_TREE_HPP #define TAO_PEGTL_CONTRIB_PARSE_TREE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/parse_tree_to_dot.hpp b/packages/PEGTL/include/tao/pegtl/contrib/parse_tree_to_dot.hpp index 79dbb0104..f186bf6ea 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/parse_tree_to_dot.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/parse_tree_to_dot.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_PARSE_TREE_TO_DOT_HPP #define TAO_PEGTL_CONTRIB_PARSE_TREE_TO_DOT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/peg.hpp b/packages/PEGTL/include/tao/pegtl/contrib/peg.hpp deleted file mode 100644 index 3c15c9b72..000000000 --- a/packages/PEGTL/include/tao/pegtl/contrib/peg.hpp +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2021 Daniel Deptford -// Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ - -#ifndef TAO_PEGTL_CONTRIB_PEG_HPP -#define TAO_PEGTL_CONTRIB_PEG_HPP - -#include <tao/pegtl.hpp> - -namespace TAO_PEGTL_NAMESPACE::peg -{ - // PEG grammar from https://pdos.csail.mit.edu/~baford/packrat/popl04/peg-popl04.pdf - namespace grammar - { - // clang-format off - struct AND; - struct Char; - struct Class; - struct CLOSE; - struct Comment; - struct Definition; - struct DOT; - struct EndOfFile; - struct EndOfLine; - struct Expression; - struct QUESTION; - struct IdentCont; - struct Identifier; - struct IdentStart; - struct LEFTARROW; - struct Literal; - struct NOT; - struct OPEN; - struct PLUS; - struct Prefix; - struct Primary; - struct Range; - struct Sequence; - struct SLASH; - struct Space; - struct Spacing; - struct STAR; - struct Suffix; - - struct Grammar : seq< Spacing, plus< Definition >, EndOfFile > {}; - - struct Definition : seq< Identifier, LEFTARROW, Expression > {}; - struct Expression : list< Sequence, SLASH > {}; - struct Sequence : star< Prefix > {}; - - struct Prefix : seq< opt< sor< AND, NOT > >, Suffix > {}; - struct Suffix : seq< Primary, opt< sor< QUESTION, STAR, PLUS > > > {}; - - struct Primary : sor< - seq< Identifier, not_at< LEFTARROW > >, - seq< OPEN, Expression, CLOSE >, - Literal, - Class, - DOT - > {}; - - struct Identifier : seq< IdentStart, star< IdentCont >, Spacing > {}; - - struct IdentStart : identifier_first {}; - - struct IdentCont : identifier_other {}; - - struct Literal : sor< - seq< one< '\'' >, until< one< '\'' >, Char >, Spacing >, - seq< one< '"' >, until< one< '"' >, Char >, Spacing > - > {}; - - struct Class : seq< one< '[' >, until< one< ']' >, Range >, Spacing > {}; - - struct Range : sor< - seq< Char, one< '-' >, Char >, - Char - > {}; - - struct Char : sor< - seq< - one< '\\' >, - one< 'n', 'r', 't', '\'', '"', '[', ']', '\\' > >, - seq< - one< '\\' >, - range< '0', '2' >, - range< '0', '7' >, - range< '0', '7' > >, - seq< - one< '\\' >, - range< '0','7' >, - opt< range< '0','7' > > >, - seq< - not_at< one< '\\' > >, - any > - > {}; - - struct LEFTARROW : seq< string< '<','-' >, Spacing > {}; - struct SLASH : seq< one< '/' >, Spacing > {}; - struct AND : seq< one< '&' >, Spacing > {}; - struct NOT : seq< one< '!' >, Spacing > {}; - struct QUESTION : seq< one< '?' >, Spacing > {}; - struct STAR : seq< one< '*' >, Spacing > {}; - struct PLUS : seq< one< '+' >, Spacing > {}; - struct OPEN : seq< one< '(' >, Spacing > {}; - struct CLOSE : seq< one< ')' >, Spacing > {}; - struct DOT : seq< one< '.' >, Spacing > {}; - - struct Spacing : star< sor< Space, Comment > > {}; - struct Comment : seq< one< '#' >, until< EndOfLine > > {}; - - struct Space : sor< one< ' ', '\t' >, EndOfLine > {}; - struct EndOfLine : sor< string< '\r', '\n' >, one< '\n' >, one< '\r' > > {}; - struct EndOfFile : eof {}; - // clang-format on - - } // namespace grammar - -} // namespace TAO_PEGTL_NAMESPACE::peg - -#endif // TAO_PEGTL_CONTRIB_PEG_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/predicates.hpp b/packages/PEGTL/include/tao/pegtl/contrib/predicates.hpp index 35a1f9b2f..4e37e2907 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/predicates.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/predicates.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_PREDICATES_HPP #define TAO_PEGTL_CONTRIB_PREDICATES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/print.hpp b/packages/PEGTL/include/tao/pegtl/contrib/print.hpp index 1583630f9..18d803021 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/print.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/print.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_PRINT_HPP #define TAO_PEGTL_CONTRIB_PRINT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/print_coverage.hpp b/packages/PEGTL/include/tao/pegtl/contrib/print_coverage.hpp index 98be601d0..9b0774f04 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/print_coverage.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/print_coverage.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_PRINT_COVERAGE_HPP #define TAO_PEGTL_CONTRIB_PRINT_COVERAGE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/proto3.hpp b/packages/PEGTL/include/tao/pegtl/contrib/proto3.hpp new file mode 100644 index 000000000..535cfa1c3 --- /dev/null +++ b/packages/PEGTL/include/tao/pegtl/contrib/proto3.hpp @@ -0,0 +1,143 @@ +// Copyright (c) 2021 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) + +#ifndef TAO_PEGTL_CONTRIB_PROTO3_HPP +#define TAO_PEGTL_CONTRIB_PROTO3_HPP + +#include "../ascii.hpp" +#include "../config.hpp" +#include "../rules.hpp" + +namespace TAO_PEGTL_NAMESPACE::proto3 +{ + // protocol buffer v3 + // https://developers.google.com/protocol-buffers/docs/reference/proto3-spec + + // clang-format off + struct comment_sl : seq< two< '/' >, until< eolf > > {}; + struct comment_ml : if_must< string< '/', '*' >, until< string< '*', '/' > > > {}; + struct sp : sor< space, comment_sl, comment_ml > {}; + struct sps : star< sp > {}; + + struct comma : one< ',' > {}; + struct dot : one< '.' > {}; + struct equ : one< '=' > {}; + struct semi : one< ';' > {}; + + struct option; + struct message; + struct extend; + + struct ident_first : ranges< 'a', 'z', 'A', 'Z' > {}; // NOTE: Yes, no '_'. + struct ident_other : ranges< 'a', 'z', 'A', 'Z', '0', '9', '_' > {}; + struct ident : seq< ident_first, star< ident_other > > {}; + struct full_ident : list_must< ident, dot > {}; + + struct hex_lit : seq< one< '0' >, one< 'x', 'X' >, plus< xdigit > > {}; + struct oct_lit : seq< one< '0' >, plus< odigit > > {}; + struct dec_lit : seq< range< '1', '9' >, star< digit > > {}; + struct int_lit : sor< hex_lit, oct_lit, dec_lit > {}; + + struct sign : one< '+', '-' > {}; + struct exp : seq< one< 'E', 'e' >, opt< sign >, plus< digit > > {}; + struct float_lit : sor< + seq< plus< digit >, dot, exp >, + seq< plus< digit >, dot, star< digit >, opt< exp > >, + seq< dot, plus< digit >, opt< exp > >, + keyword< 'i', 'n', 'f' >, + keyword< 'n', 'a', 'n' > > {}; + + struct bool_lit : sor< keyword< 't', 'r', 'u', 'e' >, + keyword< 'f', 'a', 'l', 's', 'e' > > {}; + + struct hex_escape : if_must< one< 'x', 'X' >, xdigit, xdigit > {}; + struct oct_escape : if_must< odigit, odigit, odigit > {}; + struct char_escape : one< 'a', 'b', 'f', 'n', 'r', 't', 'v', '\\', '\'', '"' > {}; + struct escape : if_must< one< '\\' >, hex_escape, oct_escape, char_escape > {}; + struct char_value : sor< escape, not_one< '\n', '\0' > > {}; // NOTE: No need to exclude '\' from not_one<>, see escape rule. + template< char Q > + struct str_impl : if_must< one< Q >, until< one< Q >, char_value > > {}; + struct str_lit : sor< str_impl< '\'' >, str_impl< '"' > > {}; + + struct constant : sor< bool_lit, seq< opt< sign >, float_lit >, seq< opt< sign >, int_lit >, str_lit, full_ident > {}; + + struct option_name : seq< sor< ident, if_must< one< '(' >, full_ident, one< ')' > > >, star_must< dot, ident > > {}; + struct option : if_must< keyword< 'o', 'p', 't', 'i', 'o', 'n' >, sps, option_name, sps, equ, sps, constant, sps, semi > {}; + + struct bool_type : keyword< 'b', 'o', 'o', 'l' > {}; + struct bytes_type : keyword< 'b', 'y', 't', 'e', 's' > {}; + struct double_type : keyword< 'd', 'o', 'u', 'b', 'l', 'e' > {}; + struct float_type : keyword< 'f', 'l', 'o', 'a', 't' > {}; + struct string_type : keyword< 's', 't', 'r', 'i', 'n', 'g' > {}; + + struct int32_type : keyword< 'i', 'n', 't', '3', '2' > {}; + struct int64_type : keyword< 'i', 'n', 't', '6', '4' > {}; + struct sint32_type : keyword< 's', 'i', 'n', 't', '3', '2' > {}; + struct sint64_type : keyword< 's', 'i', 'n', 't', '6', '4' > {}; + struct uint32_type : keyword< 'u', 'i', 'n', 't', '3', '2' > {}; + struct uint64_type : keyword< 'u', 'i', 'n', 't', '6', '4' > {}; + struct fixed32_type : keyword< 'f', 'i', 'x', 'e', 'd', '3', '2' > {}; + struct fixed64_type : keyword< 'f', 'i', 'x', 'e', 'd', '6', '4' > {}; + struct sfixed32_type : keyword< 's', 'f', 'i', 'x', 'e', 'd', '3', '2' > {}; + struct sfixed64_type : keyword< 's', 'f', 'i', 'x', 'e', 'd', '6', '4' > {}; + + struct builtin_type : sor< bool_type, bytes_type, double_type, float_type, string_type, int32_type, int64_type, sint32_type, sint64_type, uint32_type, uint64_type, fixed32_type, fixed64_type, sfixed32_type, sfixed64_type > {}; + + struct defined_type : seq< opt< dot >, full_ident > {}; // NOTE: This replaces both message_type and enum_type -- they have the same syntax. + + struct type : sor< builtin_type, defined_type > {}; + + struct field_option : if_must< option_name, sps, equ, sps, constant > {}; + struct field_options : if_must< one< '[' >, sps, list< field_option, comma, sp >, sps, one< ']' > > {}; + struct field_name : ident {}; + struct field_number : int_lit {}; + struct field : seq< opt< sor< keyword< 'o', 'p', 't', 'i', 'o', 'n', 'a', 'l' >, keyword< 'r', 'e', 'p', 'e', 'a', 't', 'e', 'd' > >, sps >, type, sps, field_name, sps, equ, sps, field_number, sps, opt< field_options, sps >, semi > {}; + + struct oneof_name : ident {}; + struct oneof_field : if_must< type, sps, field_name, sps, equ, sps, field_number, sps, opt< field_options, sps >, semi > {}; + struct oneof_body : sor< oneof_field, semi > {}; + struct oneof : if_must< keyword< 'o', 'n', 'e', 'o', 'f' >, sps, oneof_name, sps, one< '{' >, sps, until< one< '}' >, oneof_body, sps >, sps > {}; + + struct key_type : seq< sor< bool_type, string_type, int32_type, int64_type, sint32_type, sint64_type, uint32_type, uint64_type, fixed32_type, fixed64_type, sfixed32_type, sfixed64_type >, not_at< ident_other > > {}; + struct map_name : ident {}; + struct map_field : if_must< keyword< 'm', 'a', 'p' >, sps, one< '<' >, sps, key_type, sps, comma, sps, type, sps, one< '>' >, sps, map_name, sps, equ, sps, field_number, sps, opt< field_options, sps >, semi > {}; + + struct range : if_must< int_lit, sps, keyword< 't', 'o' >, sps, sor< int_lit, keyword< 'm', 'a', 'x' > > > {}; + struct ranges : list_must< range, comma, sp > {}; + struct field_names : list_must< field_name, comma, sp > {}; + struct reserved : if_must< keyword< 'r', 'e', 's', 'e', 'r', 'v', 'e', 'd' >, sps, sor< ranges, field_names >, sps, semi > {}; + + struct enum_name : ident {}; + struct enum_value_option : seq< option_name, sps, equ, sps, constant > {}; + struct enum_field : seq< ident, sps, equ, sps, int_lit, sps, opt_must< one< '[' >, sps, list_must< enum_value_option, comma, sp >, sps, one< ']' >, sps >, semi > {}; + struct enum_body : if_must< one< '{' >, sps, star< sor< option, enum_field, semi >, sps >, one< '}' > > {}; + struct enum_def : if_must< keyword< 'e', 'n', 'u', 'm' >, sps, enum_name, sps, enum_body > {}; + + struct message_thing : sor< field, enum_def, message, option, oneof, map_field, reserved, extend, semi > {}; + struct message_body : seq< one<'{'>, sps, star< message_thing, sps >, one<'}'> > {}; + struct message : if_must< keyword< 'm', 'e', 's', 's', 'a', 'g', 'e' >, sps, defined_type, sps, message_body > {}; + struct extend : if_must< keyword< 'e', 'x', 't', 'e', 'n', 'd' >, sps, defined_type, sps, message_body > {}; + + struct package : if_must< keyword< 'p', 'a', 'c', 'k', 'a', 'g', 'e' >, sps, full_ident, sps, semi > {}; + + struct import_option : opt< sor< keyword< 'w', 'e', 'a', 'k' >, keyword< 'p', 'u', 'b', 'l', 'i', 'c' > > > {}; + struct import : if_must< keyword< 'i', 'm', 'p', 'o', 'r', 't' >, sps, import_option, sps, str_lit, sps, semi > {}; + + struct rpc_name : ident {}; + struct rpc_type : if_must< one< '(' >, sps, opt< keyword< 's', 't', 'r', 'e', 'a', 'm' >, sps >, defined_type, sps, one< ')' > > {}; + struct rpc_options : if_must< one< '{' >, sps, star< sor< option, semi >, sps >, one< '}' > > {}; + struct rpc : if_must< keyword< 'r', 'p', 'c' >, sps, rpc_name, sps, rpc_type, sps, keyword< 'r', 'e', 't', 'u', 'r', 'n', 's' >, sps, rpc_type, sps, sor< semi, rpc_options > > {}; + struct service_name : ident {}; + struct service : if_must< keyword< 's', 'e', 'r', 'v', 'i', 'c', 'e' >, sps, service_name, sps, one< '{' >, sps, star< sor< option, rpc, semi >, sps >, one< '}' > > {}; + + struct body : sor< import, package, option, message, enum_def, service, extend, semi > {}; + + struct quote : one< '\'', '"' > {}; + struct head : if_must< keyword< 's', 'y', 'n', 't', 'a', 'x' >, sps, equ, sps, quote, string< 'p', 'r', 'o', 't', 'o', '3' >, quote, sps, semi > {}; + struct proto : must< sps, head, sps, star< body, sps >, eof > {}; + // clang-format on + +} // namespace TAO_PEGTL_NAMESPACE::proto3 + +#endif diff --git a/packages/PEGTL/include/tao/pegtl/contrib/raw_string.hpp b/packages/PEGTL/include/tao/pegtl/contrib/raw_string.hpp index 819fb6248..e24c578bc 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/raw_string.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/raw_string.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_RAW_STRING_HPP #define TAO_PEGTL_CONTRIB_RAW_STRING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/remove_first_state.hpp b/packages/PEGTL/include/tao/pegtl/contrib/remove_first_state.hpp index 418347b75..74384c639 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/remove_first_state.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/remove_first_state.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_REMOVE_FIRST_STATE_HPP #define TAO_PEGTL_CONTRIB_REMOVE_FIRST_STATE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/remove_last_states.hpp b/packages/PEGTL/include/tao/pegtl/contrib/remove_last_states.hpp index 8c6246407..5a4d67ecc 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/remove_last_states.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/remove_last_states.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_REMOVE_LAST_STATES_HPP #define TAO_PEGTL_CONTRIB_REMOVE_LAST_STATES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/rep_one_min_max.hpp b/packages/PEGTL/include/tao/pegtl/contrib/rep_one_min_max.hpp index 13df3b3fa..785e46f98 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/rep_one_min_max.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/rep_one_min_max.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_REP_ONE_MIN_MAX_HPP #define TAO_PEGTL_CONTRIB_REP_ONE_MIN_MAX_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/rep_string.hpp b/packages/PEGTL/include/tao/pegtl/contrib/rep_string.hpp index d29040d4a..b42061667 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/rep_string.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/rep_string.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_REP_STRING_HPP #define TAO_PEGTL_CONTRIB_REP_STRING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp b/packages/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp new file mode 100644 index 000000000..26aac6ab4 --- /dev/null +++ b/packages/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp @@ -0,0 +1,46 @@ +// Copyright (c) 2021 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) + +#ifndef TAO_PEGTL_CONTRIB_SEPARATED_SEQ_HPP +#define TAO_PEGTL_CONTRIB_SEPARATED_SEQ_HPP + +#include "../config.hpp" + +#include "../internal/seq.hpp" +#include "../type_list.hpp" + +namespace TAO_PEGTL_NAMESPACE +{ + namespace internal + { + template< typename... > + struct sep; + + template< typename... Ts, typename S, typename Rule, typename... Rules > + struct sep< type_list< Ts... >, S, Rule, Rules... > + : sep< type_list< Ts..., Rule, S >, S, Rules... > + {}; + + template< typename... Ts, typename S, typename Rule > + struct sep< type_list< Ts... >, S, Rule > + { + using type = seq< Ts..., Rule >; + }; + + template< typename S > + struct sep< type_list<>, S > + { + using type = seq<>; + }; + + } // namespace internal + + template< typename S, typename... Rules > + struct separated_seq + : internal::sep< type_list<>, S, Rules... >::type + {}; + +} // namespace TAO_PEGTL_NAMESPACE + +#endif diff --git a/packages/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp b/packages/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp index 31faaea9d..8cc969048 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_SHUFFLE_STATES_HPP #define TAO_PEGTL_CONTRIB_SHUFFLE_STATES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/state_control.hpp b/packages/PEGTL/include/tao/pegtl/contrib/state_control.hpp index cb41b058c..a65a61b05 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/state_control.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/state_control.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_STATE_CONTROL_HPP #define TAO_PEGTL_CONTRIB_STATE_CONTROL_HPP @@ -32,7 +33,8 @@ namespace TAO_PEGTL_NAMESPACE state.template start< Rule >( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } @@ -46,7 +48,8 @@ namespace TAO_PEGTL_NAMESPACE Control< Rule >::success( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } @@ -60,7 +63,8 @@ namespace TAO_PEGTL_NAMESPACE Control< Rule >::failure( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } @@ -84,7 +88,8 @@ namespace TAO_PEGTL_NAMESPACE Control< Rule >::unwind( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } diff --git a/packages/PEGTL/include/tao/pegtl/contrib/to_string.hpp b/packages/PEGTL/include/tao/pegtl/contrib/to_string.hpp index 987f02875..1075e897e 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/to_string.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/to_string.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_TO_STRING_HPP #define TAO_PEGTL_CONTRIB_TO_STRING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/trace.hpp b/packages/PEGTL/include/tao/pegtl/contrib/trace.hpp index d1ac4380b..751ceb50a 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/trace.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/trace.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_TRACE_HPP #define TAO_PEGTL_CONTRIB_TRACE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/uint16.hpp b/packages/PEGTL/include/tao/pegtl/contrib/uint16.hpp index c3c1bf1e3..1f7532861 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/uint16.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/uint16.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_UINT16_HPP #define TAO_PEGTL_CONTRIB_UINT16_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/uint32.hpp b/packages/PEGTL/include/tao/pegtl/contrib/uint32.hpp index 39a46c322..8bd88045b 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/uint32.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/uint32.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_UINT32_HPP #define TAO_PEGTL_CONTRIB_UINT32_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/uint64.hpp b/packages/PEGTL/include/tao/pegtl/contrib/uint64.hpp index 3084a59d0..366c9f4a6 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/uint64.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/uint64.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_UINT64_HPP #define TAO_PEGTL_CONTRIB_UINT64_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/uint8.hpp b/packages/PEGTL/include/tao/pegtl/contrib/uint8.hpp index f9e7dc7cd..a5b325a29 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/uint8.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/uint8.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_UINT8_HPP #define TAO_PEGTL_CONTRIB_UINT8_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/unescape.hpp b/packages/PEGTL/include/tao/pegtl/contrib/unescape.hpp index 5079f8275..7fb0c081b 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/unescape.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/unescape.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_UNESCAPE_HPP #define TAO_PEGTL_CONTRIB_UNESCAPE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/uri.hpp b/packages/PEGTL/include/tao/pegtl/contrib/uri.hpp index 701b2bb41..b019a7b36 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/uri.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/uri.hpp @@ -1,11 +1,12 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_URI_HPP #define TAO_PEGTL_CONTRIB_URI_HPP #if !defined( __cpp_exceptions ) -#error "Exception support required tao/pegtl/contrib/uri.hpp" +#error "Exception support required for tao/pegtl/contrib/uri.hpp" #else #include <cstdint> diff --git a/packages/PEGTL/include/tao/pegtl/contrib/utf16.hpp b/packages/PEGTL/include/tao/pegtl/contrib/utf16.hpp index 090b6b061..74915e16d 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/utf16.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/utf16.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_UTF16_HPP #define TAO_PEGTL_CONTRIB_UTF16_HPP diff --git a/packages/PEGTL/include/tao/pegtl/contrib/utf32.hpp b/packages/PEGTL/include/tao/pegtl/contrib/utf32.hpp index d8b80517a..1201fca88 100644 --- a/packages/PEGTL/include/tao/pegtl/contrib/utf32.hpp +++ b/packages/PEGTL/include/tao/pegtl/contrib/utf32.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CONTRIB_UTF32_HPP #define TAO_PEGTL_CONTRIB_UTF32_HPP diff --git a/packages/PEGTL/include/tao/pegtl/cstream_input.hpp b/packages/PEGTL/include/tao/pegtl/cstream_input.hpp index 1496927b4..c58991226 100644 --- a/packages/PEGTL/include/tao/pegtl/cstream_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/cstream_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_CSTREAM_INPUT_HPP #define TAO_PEGTL_CSTREAM_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/demangle.hpp b/packages/PEGTL/include/tao/pegtl/demangle.hpp index 56cc170c6..97b260652 100644 --- a/packages/PEGTL/include/tao/pegtl/demangle.hpp +++ b/packages/PEGTL/include/tao/pegtl/demangle.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL +// 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) #ifndef TAO_PEGTL_DEMANGLE_HPP #define TAO_PEGTL_DEMANGLE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/disable_action.hpp b/packages/PEGTL/include/tao/pegtl/disable_action.hpp index 0781516f4..92bc2f4d3 100644 --- a/packages/PEGTL/include/tao/pegtl/disable_action.hpp +++ b/packages/PEGTL/include/tao/pegtl/disable_action.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_DISABLE_ACTION_HPP #define TAO_PEGTL_DISABLE_ACTION_HPP diff --git a/packages/PEGTL/include/tao/pegtl/discard_input.hpp b/packages/PEGTL/include/tao/pegtl/discard_input.hpp index 61ddf0dd2..dec0a9af5 100644 --- a/packages/PEGTL/include/tao/pegtl/discard_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/discard_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_DISCARD_INPUT_HPP #define TAO_PEGTL_DISCARD_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/discard_input_on_failure.hpp b/packages/PEGTL/include/tao/pegtl/discard_input_on_failure.hpp index 6e4a9cd30..305038e96 100644 --- a/packages/PEGTL/include/tao/pegtl/discard_input_on_failure.hpp +++ b/packages/PEGTL/include/tao/pegtl/discard_input_on_failure.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_DISCARD_INPUT_ON_FAILURE_HPP #define TAO_PEGTL_DISCARD_INPUT_ON_FAILURE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/discard_input_on_success.hpp b/packages/PEGTL/include/tao/pegtl/discard_input_on_success.hpp index 3edc271bd..c5beb7d91 100644 --- a/packages/PEGTL/include/tao/pegtl/discard_input_on_success.hpp +++ b/packages/PEGTL/include/tao/pegtl/discard_input_on_success.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_DISCARD_INPUT_ON_SUCCESS_HPP #define TAO_PEGTL_DISCARD_INPUT_ON_SUCCESS_HPP diff --git a/packages/PEGTL/include/tao/pegtl/enable_action.hpp b/packages/PEGTL/include/tao/pegtl/enable_action.hpp index a87726f88..ae0c09983 100644 --- a/packages/PEGTL/include/tao/pegtl/enable_action.hpp +++ b/packages/PEGTL/include/tao/pegtl/enable_action.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_ENABLE_ACTION_HPP #define TAO_PEGTL_ENABLE_ACTION_HPP diff --git a/packages/PEGTL/include/tao/pegtl/eol.hpp b/packages/PEGTL/include/tao/pegtl/eol.hpp index 8c496da7e..c2df140e3 100644 --- a/packages/PEGTL/include/tao/pegtl/eol.hpp +++ b/packages/PEGTL/include/tao/pegtl/eol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_EOL_HPP #define TAO_PEGTL_EOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/eol_pair.hpp b/packages/PEGTL/include/tao/pegtl/eol_pair.hpp index 239af370e..b139d3bdc 100644 --- a/packages/PEGTL/include/tao/pegtl/eol_pair.hpp +++ b/packages/PEGTL/include/tao/pegtl/eol_pair.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_EOL_PAIR_HPP #define TAO_PEGTL_EOL_PAIR_HPP diff --git a/packages/PEGTL/include/tao/pegtl/file_input.hpp b/packages/PEGTL/include/tao/pegtl/file_input.hpp index 91895b31e..408b89fc0 100644 --- a/packages/PEGTL/include/tao/pegtl/file_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/file_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_FILE_INPUT_HPP #define TAO_PEGTL_FILE_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/action.hpp b/packages/PEGTL/include/tao/pegtl/internal/action.hpp index 3443c2997..8068241e8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/action.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/action.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ACTION_HPP #define TAO_PEGTL_INTERNAL_ACTION_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/action_input.hpp b/packages/PEGTL/include/tao/pegtl/internal/action_input.hpp index ccc2d1650..fa622fa32 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/action_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/action_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ACTION_INPUT_HPP #define TAO_PEGTL_INTERNAL_ACTION_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/any.hpp b/packages/PEGTL/include/tao/pegtl/internal/any.hpp index 59ba05f5a..9e710c5f8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/any.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/any.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ANY_HPP #define TAO_PEGTL_INTERNAL_ANY_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/apply.hpp b/packages/PEGTL/include/tao/pegtl/internal/apply.hpp index cc5e9fd9e..97a342b86 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/apply.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/apply.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_APPLY_HPP #define TAO_PEGTL_INTERNAL_APPLY_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/apply0.hpp b/packages/PEGTL/include/tao/pegtl/internal/apply0.hpp index a6e37f4e4..2710de8e8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/apply0.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/apply0.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_APPLY0_HPP #define TAO_PEGTL_INTERNAL_APPLY0_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/apply0_single.hpp b/packages/PEGTL/include/tao/pegtl/internal/apply0_single.hpp index 11939064d..167031924 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/apply0_single.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/apply0_single.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_APPLY0_SINGLE_HPP #define TAO_PEGTL_INTERNAL_APPLY0_SINGLE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/apply_single.hpp b/packages/PEGTL/include/tao/pegtl/internal/apply_single.hpp index 57b0ca8fc..728ad4772 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/apply_single.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/apply_single.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_APPLY_SINGLE_HPP #define TAO_PEGTL_INTERNAL_APPLY_SINGLE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/at.hpp b/packages/PEGTL/include/tao/pegtl/internal/at.hpp index 7f7d2894c..117b5a429 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/at.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/at.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_AT_HPP #define TAO_PEGTL_INTERNAL_AT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/bof.hpp b/packages/PEGTL/include/tao/pegtl/internal/bof.hpp index da5c920bc..7038d953f 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/bof.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/bof.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_BOF_HPP #define TAO_PEGTL_INTERNAL_BOF_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/bol.hpp b/packages/PEGTL/include/tao/pegtl/internal/bol.hpp index a71109d77..759a8bd01 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/bol.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/bol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_BOL_HPP #define TAO_PEGTL_INTERNAL_BOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/bump.hpp b/packages/PEGTL/include/tao/pegtl/internal/bump.hpp index 02e2278a2..1b305f3a2 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/bump.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/bump.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_BUMP_HPP #define TAO_PEGTL_INTERNAL_BUMP_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/bump_help.hpp b/packages/PEGTL/include/tao/pegtl/internal/bump_help.hpp index 68c82b997..f40c6171c 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/bump_help.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/bump_help.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_BUMP_HELP_HPP #define TAO_PEGTL_INTERNAL_BUMP_HELP_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/bytes.hpp b/packages/PEGTL/include/tao/pegtl/internal/bytes.hpp index 476ce965d..2012f05c7 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/bytes.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/bytes.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_BYTES_HPP #define TAO_PEGTL_INTERNAL_BYTES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/control.hpp b/packages/PEGTL/include/tao/pegtl/internal/control.hpp index e434ae067..a202f5d43 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/control.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/control.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_CONTROL_HPP #define TAO_PEGTL_INTERNAL_CONTROL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/cr_crlf_eol.hpp b/packages/PEGTL/include/tao/pegtl/internal/cr_crlf_eol.hpp index 225045139..cf2e72ec8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/cr_crlf_eol.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/cr_crlf_eol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_CR_CRLF_EOL_HPP #define TAO_PEGTL_INTERNAL_CR_CRLF_EOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/cr_eol.hpp b/packages/PEGTL/include/tao/pegtl/internal/cr_eol.hpp index 833a7c0c3..5d1a61951 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/cr_eol.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/cr_eol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_CR_EOL_HPP #define TAO_PEGTL_INTERNAL_CR_EOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/crlf_eol.hpp b/packages/PEGTL/include/tao/pegtl/internal/crlf_eol.hpp index 5b71de830..f419a6f48 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/crlf_eol.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/crlf_eol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_CRLF_EOL_HPP #define TAO_PEGTL_INTERNAL_CRLF_EOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/cstream_reader.hpp b/packages/PEGTL/include/tao/pegtl/internal/cstream_reader.hpp index e8ca048c3..0dc630539 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/cstream_reader.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/cstream_reader.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_CSTREAM_READER_HPP #define TAO_PEGTL_INTERNAL_CSTREAM_READER_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/cstring_reader.hpp b/packages/PEGTL/include/tao/pegtl/internal/cstring_reader.hpp index c98044c81..4c3b10e74 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/cstring_reader.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/cstring_reader.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_CSTRING_READER_HPP #define TAO_PEGTL_INTERNAL_CSTRING_READER_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/dependent_false.hpp b/packages/PEGTL/include/tao/pegtl/internal/dependent_false.hpp index 57661a415..a5cc470a3 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/dependent_false.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/dependent_false.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_DEPENDENT_FALSE_HPP #define TAO_PEGTL_INTERNAL_DEPENDENT_FALSE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/disable.hpp b/packages/PEGTL/include/tao/pegtl/internal/disable.hpp index 9a294d3b8..76bdc5a8e 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/disable.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/disable.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_DISABLE_HPP #define TAO_PEGTL_INTERNAL_DISABLE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/discard.hpp b/packages/PEGTL/include/tao/pegtl/internal/discard.hpp index b92760d04..bea7aa3f2 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/discard.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/discard.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_DISCARD_HPP #define TAO_PEGTL_INTERNAL_DISCARD_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/enable.hpp b/packages/PEGTL/include/tao/pegtl/internal/enable.hpp index 9c453435c..cb4fbe9db 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/enable.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/enable.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ENABLE_HPP #define TAO_PEGTL_INTERNAL_ENABLE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/enable_control.hpp b/packages/PEGTL/include/tao/pegtl/internal/enable_control.hpp index 16ca42369..4fe5ae199 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/enable_control.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/enable_control.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ENABLE_CONTROL_HPP #define TAO_PEGTL_INTERNAL_ENABLE_CONTROL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/eof.hpp b/packages/PEGTL/include/tao/pegtl/internal/eof.hpp index c4f0f8132..e227e0474 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/eof.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/eof.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_EOF_HPP #define TAO_PEGTL_INTERNAL_EOF_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/eol.hpp b/packages/PEGTL/include/tao/pegtl/internal/eol.hpp index ecec04f32..6f8633afc 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/eol.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/eol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_EOL_HPP #define TAO_PEGTL_INTERNAL_EOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/eolf.hpp b/packages/PEGTL/include/tao/pegtl/internal/eolf.hpp index 71fa8d891..101605b9e 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/eolf.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/eolf.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_EOLF_HPP #define TAO_PEGTL_INTERNAL_EOLF_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/failure.hpp b/packages/PEGTL/include/tao/pegtl/internal/failure.hpp index 750849977..8f14322b8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/failure.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/failure.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_FAILURE_HPP #define TAO_PEGTL_INTERNAL_FAILURE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/file_mapper_posix.hpp b/packages/PEGTL/include/tao/pegtl/internal/file_mapper_posix.hpp index 68bb8f6d6..def276bce 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/file_mapper_posix.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/file_mapper_posix.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_FILE_MAPPER_POSIX_HPP #define TAO_PEGTL_INTERNAL_FILE_MAPPER_POSIX_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/file_mapper_win32.hpp b/packages/PEGTL/include/tao/pegtl/internal/file_mapper_win32.hpp index 73c27dec9..4a353ccf4 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/file_mapper_win32.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/file_mapper_win32.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_FILE_MAPPER_WIN32_HPP #define TAO_PEGTL_INTERNAL_FILE_MAPPER_WIN32_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/file_reader.hpp b/packages/PEGTL/include/tao/pegtl/internal/file_reader.hpp index 7c2b05494..a842f4bd0 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/file_reader.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/file_reader.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_FILE_READER_HPP #define TAO_PEGTL_INTERNAL_FILE_READER_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/filesystem.hpp b/packages/PEGTL/include/tao/pegtl/internal/filesystem.hpp index ad241abd2..fdb5e2f10 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/filesystem.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/filesystem.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_FILESYSTEM_HPP #define TAO_PEGTL_INTERNAL_FILESYSTEM_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/has_apply.hpp b/packages/PEGTL/include/tao/pegtl/internal/has_apply.hpp index 697f6ff3c..5b746ebcc 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/has_apply.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/has_apply.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_HAS_APPLY_HPP #define TAO_PEGTL_INTERNAL_HAS_APPLY_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/has_apply0.hpp b/packages/PEGTL/include/tao/pegtl/internal/has_apply0.hpp index 3f5fc599d..cb14882ac 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/has_apply0.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/has_apply0.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_HAS_APPLY0_HPP #define TAO_PEGTL_INTERNAL_HAS_APPLY0_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/has_match.hpp b/packages/PEGTL/include/tao/pegtl/internal/has_match.hpp index 0606d7a5a..ab8425874 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/has_match.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/has_match.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_HAS_MATCH_HPP #define TAO_PEGTL_INTERNAL_HAS_MATCH_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/has_unwind.hpp b/packages/PEGTL/include/tao/pegtl/internal/has_unwind.hpp index 566c24e4e..8714d9372 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/has_unwind.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/has_unwind.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_HAS_UNWIND_HPP #define TAO_PEGTL_INTERNAL_HAS_UNWIND_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/identifier.hpp b/packages/PEGTL/include/tao/pegtl/internal/identifier.hpp index 4ecbbb324..fc78c220b 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/identifier.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/identifier.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_IDENTIFIER_HPP #define TAO_PEGTL_INTERNAL_IDENTIFIER_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/if_apply.hpp b/packages/PEGTL/include/tao/pegtl/internal/if_apply.hpp index 27dd002ab..797be3359 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/if_apply.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/if_apply.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_IF_APPLY_HPP #define TAO_PEGTL_INTERNAL_IF_APPLY_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/if_must.hpp b/packages/PEGTL/include/tao/pegtl/internal/if_must.hpp index 4cf2260e1..9f5e0bacc 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/if_must.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/if_must.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_IF_MUST_HPP #define TAO_PEGTL_INTERNAL_IF_MUST_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/if_must_else.hpp b/packages/PEGTL/include/tao/pegtl/internal/if_must_else.hpp index 685c7ca21..51ad93482 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/if_must_else.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/if_must_else.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_IF_MUST_ELSE_HPP #define TAO_PEGTL_INTERNAL_IF_MUST_ELSE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/if_then_else.hpp b/packages/PEGTL/include/tao/pegtl/internal/if_then_else.hpp index bc6fa3cea..dfe62ceb9 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/if_then_else.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/if_then_else.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_IF_THEN_ELSE_HPP #define TAO_PEGTL_INTERNAL_IF_THEN_ELSE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/input_pair.hpp b/packages/PEGTL/include/tao/pegtl/internal/input_pair.hpp index a3bf92210..423375c23 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/input_pair.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/input_pair.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP #define TAO_PEGTL_INTERNAL_INPUT_PAIR_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/istream_reader.hpp b/packages/PEGTL/include/tao/pegtl/internal/istream_reader.hpp index 371ffbab5..4b6743719 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/istream_reader.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/istream_reader.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ISTREAM_READER_HPP #define TAO_PEGTL_INTERNAL_ISTREAM_READER_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/istring.hpp b/packages/PEGTL/include/tao/pegtl/internal/istring.hpp index f7abe365f..5969c0672 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/istring.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/istring.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ISTRING_HPP #define TAO_PEGTL_INTERNAL_ISTRING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/iterator.hpp b/packages/PEGTL/include/tao/pegtl/internal/iterator.hpp index 758016772..96099cab8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/iterator.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/iterator.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ITERATOR_HPP #define TAO_PEGTL_INTERNAL_ITERATOR_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/lf_crlf_eol.hpp b/packages/PEGTL/include/tao/pegtl/internal/lf_crlf_eol.hpp index c3eae42c1..ac266014a 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/lf_crlf_eol.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/lf_crlf_eol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_LF_CRLF_EOL_HPP #define TAO_PEGTL_INTERNAL_LF_CRLF_EOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/lf_eol.hpp b/packages/PEGTL/include/tao/pegtl/internal/lf_eol.hpp index 0f4e33d64..d0f3adceb 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/lf_eol.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/lf_eol.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_LF_EOL_HPP #define TAO_PEGTL_INTERNAL_LF_EOL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/list.hpp b/packages/PEGTL/include/tao/pegtl/internal/list.hpp index 07318e657..24a393516 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/list.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/list.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_LIST_HPP #define TAO_PEGTL_INTERNAL_LIST_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/list_must.hpp b/packages/PEGTL/include/tao/pegtl/internal/list_must.hpp index aff178696..1d9cef89e 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/list_must.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/list_must.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_LIST_MUST_HPP #define TAO_PEGTL_INTERNAL_LIST_MUST_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/list_tail.hpp b/packages/PEGTL/include/tao/pegtl/internal/list_tail.hpp index 5fe3ff413..59fae07ff 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/list_tail.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/list_tail.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_LIST_TAIL_HPP #define TAO_PEGTL_INTERNAL_LIST_TAIL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/list_tail_pad.hpp b/packages/PEGTL/include/tao/pegtl/internal/list_tail_pad.hpp index b96c626b8..f204b23e8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/list_tail_pad.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/list_tail_pad.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_LIST_TAIL_PAD_HPP #define TAO_PEGTL_INTERNAL_LIST_TAIL_PAD_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/marker.hpp b/packages/PEGTL/include/tao/pegtl/internal/marker.hpp index a9ffa824f..a061aea73 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/marker.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/marker.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_MARKER_HPP #define TAO_PEGTL_INTERNAL_MARKER_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/minus.hpp b/packages/PEGTL/include/tao/pegtl/internal/minus.hpp index 4062f420e..f89ec02c8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/minus.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/minus.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_MINUS_HPP #define TAO_PEGTL_INTERNAL_MINUS_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/missing_apply.hpp b/packages/PEGTL/include/tao/pegtl/internal/missing_apply.hpp index e69cbf3a9..b979c1420 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/missing_apply.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/missing_apply.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_MISSING_APPLY_HPP #define TAO_PEGTL_INTERNAL_MISSING_APPLY_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/missing_apply0.hpp b/packages/PEGTL/include/tao/pegtl/internal/missing_apply0.hpp index 2b63a28e5..fedd156c0 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/missing_apply0.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/missing_apply0.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_MISSING_APPLY0_HPP #define TAO_PEGTL_INTERNAL_MISSING_APPLY0_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/must.hpp b/packages/PEGTL/include/tao/pegtl/internal/must.hpp index 213fc56eb..cc77f7058 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/must.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/must.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_MUST_HPP #define TAO_PEGTL_INTERNAL_MUST_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/not_at.hpp b/packages/PEGTL/include/tao/pegtl/internal/not_at.hpp index 007589697..2e27e2d62 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/not_at.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/not_at.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_NOT_AT_HPP #define TAO_PEGTL_INTERNAL_NOT_AT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/one.hpp b/packages/PEGTL/include/tao/pegtl/internal/one.hpp index e2bc05ef4..2eac40f65 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/one.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/one.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_ONE_HPP #define TAO_PEGTL_INTERNAL_ONE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/opt.hpp b/packages/PEGTL/include/tao/pegtl/internal/opt.hpp index 9dd1a0cf4..4a10afe77 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/opt.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/opt.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_OPT_HPP #define TAO_PEGTL_INTERNAL_OPT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/pad.hpp b/packages/PEGTL/include/tao/pegtl/internal/pad.hpp index ff49ce22c..13b473e24 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/pad.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/pad.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_PAD_HPP #define TAO_PEGTL_INTERNAL_PAD_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/pad_opt.hpp b/packages/PEGTL/include/tao/pegtl/internal/pad_opt.hpp index 02af2363a..80b5064f7 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/pad_opt.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/pad_opt.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_PAD_OPT_HPP #define TAO_PEGTL_INTERNAL_PAD_OPT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/path_to_string.hpp b/packages/PEGTL/include/tao/pegtl/internal/path_to_string.hpp index d28dbac73..7d7757a0b 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/path_to_string.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/path_to_string.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_PATH_TO_STRING_HPP #define TAO_PEGTL_INTERNAL_PATH_TO_STRING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/peek_char.hpp b/packages/PEGTL/include/tao/pegtl/internal/peek_char.hpp index 7dbb06f69..e85e5607d 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/peek_char.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/peek_char.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_PEEK_CHAR_HPP #define TAO_PEGTL_INTERNAL_PEEK_CHAR_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/peek_utf8.hpp b/packages/PEGTL/include/tao/pegtl/internal/peek_utf8.hpp index 77f623d10..a47d813a3 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/peek_utf8.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/peek_utf8.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_PEEK_UTF8_HPP #define TAO_PEGTL_INTERNAL_PEEK_UTF8_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/pegtl_string.hpp b/packages/PEGTL/include/tao/pegtl/internal/pegtl_string.hpp index aac858d01..576c216d2 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/pegtl_string.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/pegtl_string.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_PEGTL_STRING_HPP #define TAO_PEGTL_INTERNAL_PEGTL_STRING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/plus.hpp b/packages/PEGTL/include/tao/pegtl/internal/plus.hpp index 4a0ee5a99..2ebdd3e62 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/plus.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/plus.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_PLUS_HPP #define TAO_PEGTL_INTERNAL_PLUS_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/raise.hpp b/packages/PEGTL/include/tao/pegtl/internal/raise.hpp index 9d9c83188..11db9fce4 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/raise.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/raise.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_RAISE_HPP #define TAO_PEGTL_INTERNAL_RAISE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/range.hpp b/packages/PEGTL/include/tao/pegtl/internal/range.hpp index d1ad9e98d..f504161d1 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/range.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/range.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_RANGE_HPP #define TAO_PEGTL_INTERNAL_RANGE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/ranges.hpp b/packages/PEGTL/include/tao/pegtl/internal/ranges.hpp index bf57db611..9df06d7b3 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/ranges.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/ranges.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_RANGES_HPP #define TAO_PEGTL_INTERNAL_RANGES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/rematch.hpp b/packages/PEGTL/include/tao/pegtl/internal/rematch.hpp index a1f7e3496..4877a3401 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/rematch.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/rematch.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_REMATCH_HPP #define TAO_PEGTL_INTERNAL_REMATCH_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/rep.hpp b/packages/PEGTL/include/tao/pegtl/internal/rep.hpp index 3ef122d64..79a2be789 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/rep.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/rep.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_REP_HPP #define TAO_PEGTL_INTERNAL_REP_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/rep_min.hpp b/packages/PEGTL/include/tao/pegtl/internal/rep_min.hpp index 73f8531aa..a6efe9e67 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/rep_min.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/rep_min.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_REP_MIN_HPP #define TAO_PEGTL_INTERNAL_REP_MIN_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/rep_min_max.hpp b/packages/PEGTL/include/tao/pegtl/internal/rep_min_max.hpp index b600152f0..b0026458e 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/rep_min_max.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/rep_min_max.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_REP_MIN_MAX_HPP #define TAO_PEGTL_INTERNAL_REP_MIN_MAX_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/rep_opt.hpp b/packages/PEGTL/include/tao/pegtl/internal/rep_opt.hpp index 435332d45..bea26e5be 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/rep_opt.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/rep_opt.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_REP_OPT_HPP #define TAO_PEGTL_INTERNAL_REP_OPT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/require.hpp b/packages/PEGTL/include/tao/pegtl/internal/require.hpp index f2ce5a022..b4e24fb15 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/require.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/require.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_REQUIRE_HPP #define TAO_PEGTL_INTERNAL_REQUIRE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/result_on_found.hpp b/packages/PEGTL/include/tao/pegtl/internal/result_on_found.hpp index 09fa6ed6e..df2bcd77b 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/result_on_found.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/result_on_found.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_RESULT_ON_FOUND_HPP #define TAO_PEGTL_INTERNAL_RESULT_ON_FOUND_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/rules.hpp b/packages/PEGTL/include/tao/pegtl/internal/rules.hpp index 5496a94b8..2f89826f1 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/rules.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/rules.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_RULES_HPP #define TAO_PEGTL_INTERNAL_RULES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/seq.hpp b/packages/PEGTL/include/tao/pegtl/internal/seq.hpp index 11af3dcca..eb0a8624d 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/seq.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/seq.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_SEQ_HPP #define TAO_PEGTL_INTERNAL_SEQ_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/sor.hpp b/packages/PEGTL/include/tao/pegtl/internal/sor.hpp index 0a8fcdf73..b09d6779c 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/sor.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/sor.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_SOR_HPP #define TAO_PEGTL_INTERNAL_SOR_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/star.hpp b/packages/PEGTL/include/tao/pegtl/internal/star.hpp index de779dffc..bc2360bf7 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/star.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/star.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_STAR_HPP #define TAO_PEGTL_INTERNAL_STAR_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/star_must.hpp b/packages/PEGTL/include/tao/pegtl/internal/star_must.hpp index 2ac45e42b..8dff5771b 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/star_must.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/star_must.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_STAR_MUST_HPP #define TAO_PEGTL_INTERNAL_STAR_MUST_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/state.hpp b/packages/PEGTL/include/tao/pegtl/internal/state.hpp index e86965bf3..4ed8d22c8 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/state.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/state.hpp @@ -1,11 +1,15 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_STATE_HPP #define TAO_PEGTL_INTERNAL_STATE_HPP #include "../config.hpp" +#include <type_traits> + +#include "dependent_false.hpp" #include "enable_control.hpp" #include "seq.hpp" #include "success.hpp" @@ -16,18 +20,18 @@ namespace TAO_PEGTL_NAMESPACE::internal { - template< typename State, typename... Rules > + template< typename NewState, typename... Rules > struct state - : state< State, seq< Rules... > > + : state< NewState, seq< Rules... > > {}; - template< typename State > - struct state< State > + template< typename NewState > + struct state< NewState > : success {}; - template< typename State, typename Rule > - struct state< State, Rule > + template< typename NewState, typename Rule > + struct state< NewState, Rule > { using rule_t = state; using subs_t = type_list< Rule >; @@ -42,17 +46,30 @@ namespace TAO_PEGTL_NAMESPACE::internal typename... States > [[nodiscard]] static bool match( ParseInput& in, States&&... st ) { - State s( static_cast< const ParseInput& >( in ), st... ); - if( Control< Rule >::template match< A, M, Action, Control >( in, s ) ) { - s.success( static_cast< const ParseInput& >( in ), st... ); - return true; + if constexpr( std::is_constructible_v< NewState, const ParseInput&, States... > ) { + NewState s( static_cast< const ParseInput& >( in ), st... ); + if( Control< Rule >::template match< A, M, Action, Control >( in, s ) ) { + s.success( static_cast< const ParseInput& >( in ), st... ); + return true; + } + return false; + } + else if constexpr( std::is_default_constructible_v< NewState > ) { + NewState s; + if( Control< Rule >::template match< A, M, Action, Control >( in, s ) ) { + s.success( static_cast< const ParseInput& >( in ), st... ); + return true; + } + return false; + } + else { + static_assert( internal::dependent_false< NewState >, "unable to instantiate new state" ); } - return false; } }; - template< typename State, typename... Rules > - inline constexpr bool enable_control< state< State, Rules... > > = false; + template< typename NewState, typename... Rules > + inline constexpr bool enable_control< state< NewState, Rules... > > = false; } // namespace TAO_PEGTL_NAMESPACE::internal diff --git a/packages/PEGTL/include/tao/pegtl/internal/string.hpp b/packages/PEGTL/include/tao/pegtl/internal/string.hpp index d659ab8b3..4ad5fcb54 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/string.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/string.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_STRING_HPP #define TAO_PEGTL_INTERNAL_STRING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/success.hpp b/packages/PEGTL/include/tao/pegtl/internal/success.hpp index 03ea08d7d..706122bd5 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/success.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/success.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_SUCCESS_HPP #define TAO_PEGTL_INTERNAL_SUCCESS_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/try_catch_type.hpp b/packages/PEGTL/include/tao/pegtl/internal/try_catch_type.hpp index 4e33287e5..ebeb3de01 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/try_catch_type.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/try_catch_type.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_TRY_CATCH_TYPE_HPP #define TAO_PEGTL_INTERNAL_TRY_CATCH_TYPE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/internal/until.hpp b/packages/PEGTL/include/tao/pegtl/internal/until.hpp index b5c5e2152..b6efd3a18 100644 --- a/packages/PEGTL/include/tao/pegtl/internal/until.hpp +++ b/packages/PEGTL/include/tao/pegtl/internal/until.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_INTERNAL_UNTIL_HPP #define TAO_PEGTL_INTERNAL_UNTIL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/istream_input.hpp b/packages/PEGTL/include/tao/pegtl/istream_input.hpp index 893316e5c..f37c1bc96 100644 --- a/packages/PEGTL/include/tao/pegtl/istream_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/istream_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_ISTREAM_INPUT_HPP #define TAO_PEGTL_ISTREAM_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/match.hpp b/packages/PEGTL/include/tao/pegtl/match.hpp index 6ac9f6178..ad4258228 100644 --- a/packages/PEGTL/include/tao/pegtl/match.hpp +++ b/packages/PEGTL/include/tao/pegtl/match.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_MATCH_HPP #define TAO_PEGTL_MATCH_HPP diff --git a/packages/PEGTL/include/tao/pegtl/memory_input.hpp b/packages/PEGTL/include/tao/pegtl/memory_input.hpp index 7cdc9f9f8..c20887131 100644 --- a/packages/PEGTL/include/tao/pegtl/memory_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/memory_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_MEMORY_INPUT_HPP #define TAO_PEGTL_MEMORY_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/mmap_input.hpp b/packages/PEGTL/include/tao/pegtl/mmap_input.hpp index 2362b6c76..759ea7035 100644 --- a/packages/PEGTL/include/tao/pegtl/mmap_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/mmap_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_MMAP_INPUT_HPP #define TAO_PEGTL_MMAP_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/must_if.hpp b/packages/PEGTL/include/tao/pegtl/must_if.hpp index 0140a57a6..875e7e9c2 100644 --- a/packages/PEGTL/include/tao/pegtl/must_if.hpp +++ b/packages/PEGTL/include/tao/pegtl/must_if.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_MUST_IF_HPP #define TAO_PEGTL_MUST_IF_HPP diff --git a/packages/PEGTL/include/tao/pegtl/normal.hpp b/packages/PEGTL/include/tao/pegtl/normal.hpp index ac9d77e26..bdbdd85ee 100644 --- a/packages/PEGTL/include/tao/pegtl/normal.hpp +++ b/packages/PEGTL/include/tao/pegtl/normal.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_NORMAL_HPP #define TAO_PEGTL_NORMAL_HPP diff --git a/packages/PEGTL/include/tao/pegtl/nothing.hpp b/packages/PEGTL/include/tao/pegtl/nothing.hpp index 302b43555..28b68f844 100644 --- a/packages/PEGTL/include/tao/pegtl/nothing.hpp +++ b/packages/PEGTL/include/tao/pegtl/nothing.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_NOTHING_HPP #define TAO_PEGTL_NOTHING_HPP diff --git a/packages/PEGTL/include/tao/pegtl/parse.hpp b/packages/PEGTL/include/tao/pegtl/parse.hpp index 3888fb3fc..962f3051a 100644 --- a/packages/PEGTL/include/tao/pegtl/parse.hpp +++ b/packages/PEGTL/include/tao/pegtl/parse.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_PARSE_HPP #define TAO_PEGTL_PARSE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/parse_error.hpp b/packages/PEGTL/include/tao/pegtl/parse_error.hpp index df62ce681..6a0ad0195 100644 --- a/packages/PEGTL/include/tao/pegtl/parse_error.hpp +++ b/packages/PEGTL/include/tao/pegtl/parse_error.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_PARSE_ERROR_HPP #define TAO_PEGTL_PARSE_ERROR_HPP diff --git a/packages/PEGTL/include/tao/pegtl/position.hpp b/packages/PEGTL/include/tao/pegtl/position.hpp index b4f1c3b26..78ed32c9f 100644 --- a/packages/PEGTL/include/tao/pegtl/position.hpp +++ b/packages/PEGTL/include/tao/pegtl/position.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_POSITION_HPP #define TAO_PEGTL_POSITION_HPP diff --git a/packages/PEGTL/include/tao/pegtl/read_input.hpp b/packages/PEGTL/include/tao/pegtl/read_input.hpp index 019c9cd20..adbad4ca0 100644 --- a/packages/PEGTL/include/tao/pegtl/read_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/read_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_READ_INPUT_HPP #define TAO_PEGTL_READ_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/require_apply.hpp b/packages/PEGTL/include/tao/pegtl/require_apply.hpp index 1200909ae..7eaa5cc07 100644 --- a/packages/PEGTL/include/tao/pegtl/require_apply.hpp +++ b/packages/PEGTL/include/tao/pegtl/require_apply.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_REQUIRE_APPLY_HPP #define TAO_PEGTL_REQUIRE_APPLY_HPP diff --git a/packages/PEGTL/include/tao/pegtl/require_apply0.hpp b/packages/PEGTL/include/tao/pegtl/require_apply0.hpp index 368f9b37d..a20f0a210 100644 --- a/packages/PEGTL/include/tao/pegtl/require_apply0.hpp +++ b/packages/PEGTL/include/tao/pegtl/require_apply0.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_REQUIRE_APPLY0_HPP #define TAO_PEGTL_REQUIRE_APPLY0_HPP diff --git a/packages/PEGTL/include/tao/pegtl/rewind_mode.hpp b/packages/PEGTL/include/tao/pegtl/rewind_mode.hpp index 48e9dc952..b97cbcfaf 100644 --- a/packages/PEGTL/include/tao/pegtl/rewind_mode.hpp +++ b/packages/PEGTL/include/tao/pegtl/rewind_mode.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_REWIND_MODE_HPP #define TAO_PEGTL_REWIND_MODE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/rules.hpp b/packages/PEGTL/include/tao/pegtl/rules.hpp index 675098833..59d73c742 100644 --- a/packages/PEGTL/include/tao/pegtl/rules.hpp +++ b/packages/PEGTL/include/tao/pegtl/rules.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_RULES_HPP #define TAO_PEGTL_RULES_HPP diff --git a/packages/PEGTL/include/tao/pegtl/string_input.hpp b/packages/PEGTL/include/tao/pegtl/string_input.hpp index 43349eb6f..f66ee24c8 100644 --- a/packages/PEGTL/include/tao/pegtl/string_input.hpp +++ b/packages/PEGTL/include/tao/pegtl/string_input.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_STRING_INPUT_HPP #define TAO_PEGTL_STRING_INPUT_HPP diff --git a/packages/PEGTL/include/tao/pegtl/tracking_mode.hpp b/packages/PEGTL/include/tao/pegtl/tracking_mode.hpp index 18e11f4d1..6e0f06b8f 100644 --- a/packages/PEGTL/include/tao/pegtl/tracking_mode.hpp +++ b/packages/PEGTL/include/tao/pegtl/tracking_mode.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_TRACKING_MODE_HPP #define TAO_PEGTL_TRACKING_MODE_HPP diff --git a/packages/PEGTL/include/tao/pegtl/type_list.hpp b/packages/PEGTL/include/tao/pegtl/type_list.hpp index 243edeb8c..f0704aabe 100644 --- a/packages/PEGTL/include/tao/pegtl/type_list.hpp +++ b/packages/PEGTL/include/tao/pegtl/type_list.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_TYPE_LIST_HPP #define TAO_PEGTL_TYPE_LIST_HPP diff --git a/packages/PEGTL/include/tao/pegtl/utf8.hpp b/packages/PEGTL/include/tao/pegtl/utf8.hpp index f0c0a83a5..95b45ef49 100644 --- a/packages/PEGTL/include/tao/pegtl/utf8.hpp +++ b/packages/PEGTL/include/tao/pegtl/utf8.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_UTF8_HPP #define TAO_PEGTL_UTF8_HPP diff --git a/packages/PEGTL/include/tao/pegtl/version.hpp b/packages/PEGTL/include/tao/pegtl/version.hpp index 2ffc6b953..034954416 100644 --- a/packages/PEGTL/include/tao/pegtl/version.hpp +++ b/packages/PEGTL/include/tao/pegtl/version.hpp @@ -1,13 +1,14 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_VERSION_HPP #define TAO_PEGTL_VERSION_HPP -#define TAO_PEGTL_VERSION "3.2.1" +#define TAO_PEGTL_VERSION "3.3.0" #define TAO_PEGTL_VERSION_MAJOR 3 -#define TAO_PEGTL_VERSION_MINOR 2 -#define TAO_PEGTL_VERSION_PATCH 1 +#define TAO_PEGTL_VERSION_MINOR 3 +#define TAO_PEGTL_VERSION_PATCH 0 #endif diff --git a/packages/PEGTL/include/tao/pegtl/visit.hpp b/packages/PEGTL/include/tao/pegtl/visit.hpp index dfce2f756..81ca6ac75 100644 --- a/packages/PEGTL/include/tao/pegtl/visit.hpp +++ b/packages/PEGTL/include/tao/pegtl/visit.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_VISIT_HPP #define TAO_PEGTL_VISIT_HPP diff --git a/packages/PEGTL/src/example/pegtl/CMakeLists.txt b/packages/PEGTL/src/example/pegtl/CMakeLists.txt index 58e1f593b..236d365dd 100644 --- a/packages/PEGTL/src/example/pegtl/CMakeLists.txt +++ b/packages/PEGTL/src/example/pegtl/CMakeLists.txt @@ -11,6 +11,7 @@ set(example_sources expression.cpp hello_world.cpp indent_aware.cpp + iri.cpp json_analyze.cpp json_ast.cpp json_build.cpp @@ -25,7 +26,6 @@ set(example_sources modulus_match.cpp parse_tree.cpp parse_tree_user_state.cpp - peg2pegtl.cpp proto3.cpp recover.cpp s_expression.cpp diff --git a/packages/PEGTL/src/example/pegtl/abnf2pegtl.cpp b/packages/PEGTL/src/example/pegtl/abnf2pegtl.cpp index 90ac59a51..3fd3b9769 100644 --- a/packages/PEGTL/src/example/pegtl/abnf2pegtl.cpp +++ b/packages/PEGTL/src/example/pegtl/abnf2pegtl.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <algorithm> #include <exception> diff --git a/packages/PEGTL/src/example/pegtl/analyze.cpp b/packages/PEGTL/src/example/pegtl/analyze.cpp index 94b4c9aa5..8f7aa0057 100644 --- a/packages/PEGTL/src/example/pegtl/analyze.cpp +++ b/packages/PEGTL/src/example/pegtl/analyze.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <tao/pegtl.hpp> diff --git a/packages/PEGTL/src/example/pegtl/calculator.cpp b/packages/PEGTL/src/example/pegtl/calculator.cpp index f69110c06..ed9fb2b05 100644 --- a/packages/PEGTL/src/example/pegtl/calculator.cpp +++ b/packages/PEGTL/src/example/pegtl/calculator.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cassert> #include <functional> diff --git a/packages/PEGTL/src/example/pegtl/chomsky_hierarchy.cpp b/packages/PEGTL/src/example/pegtl/chomsky_hierarchy.cpp index a135d3e50..cb671c0e8 100644 --- a/packages/PEGTL/src/example/pegtl/chomsky_hierarchy.cpp +++ b/packages/PEGTL/src/example/pegtl/chomsky_hierarchy.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cassert> #include <cstring> diff --git a/packages/PEGTL/src/example/pegtl/csv1.cpp b/packages/PEGTL/src/example/pegtl/csv1.cpp index 5bcdb2b33..826363fde 100644 --- a/packages/PEGTL/src/example/pegtl/csv1.cpp +++ b/packages/PEGTL/src/example/pegtl/csv1.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cassert> #include <cstdint> diff --git a/packages/PEGTL/src/example/pegtl/csv2.cpp b/packages/PEGTL/src/example/pegtl/csv2.cpp index fdc363634..c4aafd56c 100644 --- a/packages/PEGTL/src/example/pegtl/csv2.cpp +++ b/packages/PEGTL/src/example/pegtl/csv2.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <exception> #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/double.hpp b/packages/PEGTL/src/example/pegtl/double.hpp index 8ceec7cd1..c79f5cc75 100644 --- a/packages/PEGTL/src/example/pegtl/double.hpp +++ b/packages/PEGTL/src/example/pegtl/double.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_EXAMPLES_PEGTL_DOUBLE_HPP #define TAO_PEGTL_SRC_EXAMPLES_PEGTL_DOUBLE_HPP diff --git a/packages/PEGTL/src/example/pegtl/dynamic_match.cpp b/packages/PEGTL/src/example/pegtl/dynamic_match.cpp index 73ed8258d..bf1465066 100644 --- a/packages/PEGTL/src/example/pegtl/dynamic_match.cpp +++ b/packages/PEGTL/src/example/pegtl/dynamic_match.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cassert> #include <cstring> diff --git a/packages/PEGTL/src/example/pegtl/expression.cpp b/packages/PEGTL/src/example/pegtl/expression.cpp index 030b0d6db..5602ad3f0 100644 --- a/packages/PEGTL/src/example/pegtl/expression.cpp +++ b/packages/PEGTL/src/example/pegtl/expression.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/hello_world.cpp b/packages/PEGTL/src/example/pegtl/hello_world.cpp index a15273daf..8ecbdb813 100644 --- a/packages/PEGTL/src/example/pegtl/hello_world.cpp +++ b/packages/PEGTL/src/example/pegtl/hello_world.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> #include <string> diff --git a/packages/PEGTL/src/example/pegtl/indent_aware.cpp b/packages/PEGTL/src/example/pegtl/indent_aware.cpp index 42295a222..1462f89af 100644 --- a/packages/PEGTL/src/example/pegtl/indent_aware.cpp +++ b/packages/PEGTL/src/example/pegtl/indent_aware.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/iri.cpp b/packages/PEGTL/src/example/pegtl/iri.cpp new file mode 100644 index 000000000..aed3e981b --- /dev/null +++ b/packages/PEGTL/src/example/pegtl/iri.cpp @@ -0,0 +1,102 @@ +// Copyright (c) 2021 Kelvin Hammond +// Copyright (c) 2021 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) + +#if !defined( __cpp_exceptions ) +#include <iostream> +int main() +{ + std::cerr << "Exception support required, example unavailable." << std::endl; + return 1; +} +#else + +#include <tao/pegtl.hpp> +#include <tao/pegtl/contrib/iri.hpp> + +#include <iostream> + +namespace pegtl = TAO_PEGTL_NAMESPACE; + +struct IRI +{ + std::string scheme; + std::string authority; + std::string userinfo; + std::string host; + std::string port; + std::string path; + std::string query; + std::string fragment; + + explicit IRI( const std::string& iri ); +}; + +namespace iri +{ + template< std::string IRI::*Field > + struct bind + { + template< typename ActionInput > + static void apply( const ActionInput& in, IRI& iri ) + { + iri.*Field = in.string(); + } + }; + + // clang-format off + template< typename Rule > struct action {}; + + template<> struct action< pegtl::iri::scheme > : bind< &IRI::scheme > {}; + template<> struct action< pegtl::iri::iauthority > : bind< &IRI::authority > {}; + // userinfo: see below + template<> struct action< pegtl::iri::ihost > : bind< &IRI::host > {}; + template<> struct action< pegtl::iri::port > : bind< &IRI::port > {}; + template<> struct action< pegtl::iri::ipath_noscheme > : bind< &IRI::path > {}; + template<> struct action< pegtl::iri::ipath_rootless > : bind< &IRI::path > {}; + template<> struct action< pegtl::iri::ipath_absolute > : bind< &IRI::path > {}; + template<> struct action< pegtl::iri::ipath_abempty > : bind< &IRI::path > {}; + template<> struct action< pegtl::iri::iquery > : bind< &IRI::query > {}; + template<> struct action< pegtl::iri::ifragment > : bind< &IRI::fragment > {}; + // clang-format on + + template<> + struct action< pegtl::iri::opt_iuserinfo > + { + template< typename ActionInput > + static void apply( const ActionInput& in, IRI& iri ) + { + if( !in.empty() ) { + iri.userinfo = std::string( in.begin(), in.size() - 1 ); + } + } + }; + +} // namespace iri + +IRI::IRI( const std::string& iri ) +{ + using grammar = pegtl::must< pegtl::iri::IRI >; + pegtl::memory_input input( iri, "iri" ); + pegtl::parse< grammar, iri::action >( input, *this ); +} + +int main( int argc, char** argv ) +{ + for( int i = 1; i < argc; ++i ) { + std::cout << "Parsing " << argv[ i ] << std::endl; + const IRI iri( argv[ i ] ); + std::cout << "IRI.scheme: " << iri.scheme << std::endl; + std::cout << "IRI.authority: " << iri.authority << std::endl; + std::cout << "IRI.userinfo: " << iri.userinfo << std::endl; + std::cout << "IRI.host: " << iri.host << std::endl; + std::cout << "IRI.port: " << iri.port << std::endl; + std::cout << "IRI.path: " << iri.path << std::endl; + std::cout << "IRI.query: " << iri.query << std::endl; + std::cout << "IRI.fragment: " << iri.fragment << std::endl; + } + return 0; +} + +#endif diff --git a/packages/PEGTL/src/example/pegtl/json_analyze.cpp b/packages/PEGTL/src/example/pegtl/json_analyze.cpp index ed5c83a2b..9a23359a5 100644 --- a/packages/PEGTL/src/example/pegtl/json_analyze.cpp +++ b/packages/PEGTL/src/example/pegtl/json_analyze.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> diff --git a/packages/PEGTL/src/example/pegtl/json_ast.cpp b/packages/PEGTL/src/example/pegtl/json_ast.cpp index fecaab39a..e227ea874 100644 --- a/packages/PEGTL/src/example/pegtl/json_ast.cpp +++ b/packages/PEGTL/src/example/pegtl/json_ast.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iomanip> #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/json_build.cpp b/packages/PEGTL/src/example/pegtl/json_build.cpp index c5e607b7c..00d90a587 100644 --- a/packages/PEGTL/src/example/pegtl/json_build.cpp +++ b/packages/PEGTL/src/example/pegtl/json_build.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cassert> #include <iomanip> diff --git a/packages/PEGTL/src/example/pegtl/json_classes.hpp b/packages/PEGTL/src/example/pegtl/json_classes.hpp index 3e69515b0..840804328 100644 --- a/packages/PEGTL/src/example/pegtl/json_classes.hpp +++ b/packages/PEGTL/src/example/pegtl/json_classes.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_EXAMPLES_PEGTL_JSON_CLASSES_HPP #define TAO_PEGTL_SRC_EXAMPLES_PEGTL_JSON_CLASSES_HPP diff --git a/packages/PEGTL/src/example/pegtl/json_count.cpp b/packages/PEGTL/src/example/pegtl/json_count.cpp index 09bf155ef..f5de1e2ed 100644 --- a/packages/PEGTL/src/example/pegtl/json_count.cpp +++ b/packages/PEGTL/src/example/pegtl/json_count.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cstddef> #include <iomanip> diff --git a/packages/PEGTL/src/example/pegtl/json_coverage.cpp b/packages/PEGTL/src/example/pegtl/json_coverage.cpp index 3748eb160..99bf55a14 100644 --- a/packages/PEGTL/src/example/pegtl/json_coverage.cpp +++ b/packages/PEGTL/src/example/pegtl/json_coverage.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iomanip> #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/json_errors.hpp b/packages/PEGTL/src/example/pegtl/json_errors.hpp index e0517af74..5dd28f0ac 100644 --- a/packages/PEGTL/src/example/pegtl/json_errors.hpp +++ b/packages/PEGTL/src/example/pegtl/json_errors.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_EXAMPLES_PEGTL_JSON_ERRORS_HPP #define TAO_PEGTL_SRC_EXAMPLES_PEGTL_JSON_ERRORS_HPP diff --git a/packages/PEGTL/src/example/pegtl/json_parse.cpp b/packages/PEGTL/src/example/pegtl/json_parse.cpp index 240a8898c..cdff8772a 100644 --- a/packages/PEGTL/src/example/pegtl/json_parse.cpp +++ b/packages/PEGTL/src/example/pegtl/json_parse.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iomanip> #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/json_print_debug.cpp b/packages/PEGTL/src/example/pegtl/json_print_debug.cpp index ce7b08862..8adadfdb0 100644 --- a/packages/PEGTL/src/example/pegtl/json_print_debug.cpp +++ b/packages/PEGTL/src/example/pegtl/json_print_debug.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> diff --git a/packages/PEGTL/src/example/pegtl/json_print_names.cpp b/packages/PEGTL/src/example/pegtl/json_print_names.cpp index ffb4a929a..2537b7c06 100644 --- a/packages/PEGTL/src/example/pegtl/json_print_names.cpp +++ b/packages/PEGTL/src/example/pegtl/json_print_names.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> diff --git a/packages/PEGTL/src/example/pegtl/json_trace.cpp b/packages/PEGTL/src/example/pegtl/json_trace.cpp index 0084722c5..345118a29 100644 --- a/packages/PEGTL/src/example/pegtl/json_trace.cpp +++ b/packages/PEGTL/src/example/pegtl/json_trace.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iomanip> #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/json_unescape.hpp b/packages/PEGTL/src/example/pegtl/json_unescape.hpp index 79c6074c5..210087e20 100644 --- a/packages/PEGTL/src/example/pegtl/json_unescape.hpp +++ b/packages/PEGTL/src/example/pegtl/json_unescape.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_EXAMPLES_PEGTL_JSON_UNESCAPE_HPP #define TAO_PEGTL_SRC_EXAMPLES_PEGTL_JSON_UNESCAPE_HPP diff --git a/packages/PEGTL/src/example/pegtl/lua53.hpp b/packages/PEGTL/src/example/pegtl/lua53.hpp index 3bfc95370..da57ea822 100644 --- a/packages/PEGTL/src/example/pegtl/lua53.hpp +++ b/packages/PEGTL/src/example/pegtl/lua53.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_EXAMPLES_PEGTL_LUA53_HPP #define TAO_PEGTL_SRC_EXAMPLES_PEGTL_LUA53_HPP diff --git a/packages/PEGTL/src/example/pegtl/lua53_analyze.cpp b/packages/PEGTL/src/example/pegtl/lua53_analyze.cpp index 788ee84ba..d785e2a98 100644 --- a/packages/PEGTL/src/example/pegtl/lua53_analyze.cpp +++ b/packages/PEGTL/src/example/pegtl/lua53_analyze.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/lua53_parse.cpp b/packages/PEGTL/src/example/pegtl/lua53_parse.cpp index 72c1fddab..317e23c47 100644 --- a/packages/PEGTL/src/example/pegtl/lua53_parse.cpp +++ b/packages/PEGTL/src/example/pegtl/lua53_parse.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/modulus_match.cpp b/packages/PEGTL/src/example/pegtl/modulus_match.cpp index f3a7d348d..fd866c5a5 100644 --- a/packages/PEGTL/src/example/pegtl/modulus_match.cpp +++ b/packages/PEGTL/src/example/pegtl/modulus_match.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <tao/pegtl.hpp> diff --git a/packages/PEGTL/src/example/pegtl/parse_tree.cpp b/packages/PEGTL/src/example/pegtl/parse_tree.cpp index 1a37e3d05..c105e1621 100644 --- a/packages/PEGTL/src/example/pegtl/parse_tree.cpp +++ b/packages/PEGTL/src/example/pegtl/parse_tree.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <array> #include <iomanip> diff --git a/packages/PEGTL/src/example/pegtl/parse_tree_user_state.cpp b/packages/PEGTL/src/example/pegtl/parse_tree_user_state.cpp index 7268bca8a..6bb7a382a 100644 --- a/packages/PEGTL/src/example/pegtl/parse_tree_user_state.cpp +++ b/packages/PEGTL/src/example/pegtl/parse_tree_user_state.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <type_traits> diff --git a/packages/PEGTL/src/example/pegtl/peg.peg b/packages/PEGTL/src/example/pegtl/peg.peg deleted file mode 100644 index 99a7c12a8..000000000 --- a/packages/PEGTL/src/example/pegtl/peg.peg +++ /dev/null @@ -1,37 +0,0 @@ -# Parsing Expression Grammar (PEG) taken from -# https://pdos.csail.mit.edu/~baford/packrat/popl04/peg-popl04.pdf - -# Hierarchical syntax -Grammar <- Spacing Definition+ EndOfFile -Definition <- Identifier LEFTARROW Expression -Expression <- Sequence (SLASH Sequence)* -Sequence <- Prefix* -Prefix <- (AND / NOT)? Suffix -Suffix <- Primary (QUESTION / STAR / PLUS)? -Primary <- Identifier !LEFTARROW / OPEN Expression CLOSE / Literal / Class / DOT - -# Lexical syntax -Identifier <- IdentStart IdentCont* Spacing -IdentStart <- [a-zA-Z_] -IdentCont <- IdentStart / [0-9] -Literal <- ['] (!['] Char)* ['] Spacing / ["] (!["] Char)* ["] Spacing -Class <- '[' (!']' Range)* ']' Spacing -Range <- Char '-' Char / Char -Char <- '\\' [nrt'"\[\]\\] / '\\' [0-2][0-7][0-7] / '\\' [0-7][0-7]? / !'\\' . - -LEFTARROW <- '<-' Spacing -SLASH <- '/' Spacing -AND <- '&' Spacing -NOT <- '!' Spacing -QUESTION <- '?' Spacing -STAR <- '*' Spacing -PLUS <- '+' Spacing -OPEN <- '(' Spacing -CLOSE <- ')' Spacing -DOT <- '.' Spacing - -Spacing <- (Space / Comment)* -Comment <- '#' (!EndOfLine .)* EndOfLine -Space <- ' ' / '\t' / EndOfLine -EndOfLine <- '\r\n' / '\n' / '\r' -EndOfFile <- !. \ No newline at end of file diff --git a/packages/PEGTL/src/example/pegtl/peg2pegtl.cpp b/packages/PEGTL/src/example/pegtl/peg2pegtl.cpp deleted file mode 100644 index 60b2628fb..000000000 --- a/packages/PEGTL/src/example/pegtl/peg2pegtl.cpp +++ /dev/null @@ -1,545 +0,0 @@ -// Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Copyright (c) 2021 Daniel Deptford -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ - -#include <algorithm> -#include <iomanip> -#include <iostream> -#include <iterator> -#include <sstream> -#include <string> -#include <unordered_map> -#include <unordered_set> -#include <utility> -#include <vector> - -#include <cassert> -#include <cctype> -#include <cstdlib> - -#if defined( _MSC_VER ) -#include <string.h> -#define TAO_PEGTL_STRCASECMP _stricmp -#else -#include <strings.h> -#define TAO_PEGTL_STRCASECMP strcasecmp -#endif - -#include <tao/pegtl.hpp> -#include <tao/pegtl/contrib/parse_tree.hpp> -#include <tao/pegtl/contrib/peg.hpp> - -namespace TAO_PEGTL_NAMESPACE -{ - namespace peg - { - using node_ptr = std::unique_ptr< parse_tree::node >; - - namespace - { - std::string prefix = "tao::pegtl::"; - - std::unordered_set< std::string > keywords = { - "alignas", - "alignof", - "and", - "and_eq", - "asm", - "auto", - "bitand", - "bitor", - "bool", - "break", - "case", - "catch", - "char", - "char8_t", - "char16_t", - "char32_t", - "class", - "compl", - "concept", - "const", - "consteval", - "constexpr", - "constinit", - "const_cast", - "continue", - "co_await", - "co_return", - "co_yield", - "decltype", - "default", - "delete", - "do", - "double", - "dynamic_cast", - "else", - "enum", - "explicit", - "export", - "extern", - "false", - "float", - "for", - "friend", - "goto", - "if", - "inline", - "int", - "long", - "mutable", - "namespace", - "new", - "noexcept", - "not", - "not_eq", - "nullptr", - "operator", - "or", - "or_eq", - "private", - "protected", - "public", - "register", - "reinterpret_cast", - "return", - "requires", - "short", - "signed", - "sizeof", - "static", - "static_assert", - "static_cast", - "struct", - "switch", - "template", - "this", - "thread_local", - "throw", - "true", - "try", - "typedef", - "typeid", - "typename", - "union", - "unsigned", - "using", - "virtual", - "void", - "volatile", - "wchar_t", - "while", - "xor", - "xor_eq" - }; - - using identifiers_t = std::vector< std::string >; - identifiers_t identifiers_defined; - identifiers_t identifiers; - - identifiers_t::reverse_iterator find_identifier( identifiers_t& r, const std::string& v, const identifiers_t::reverse_iterator& rbegin ) - { - return std::find_if( rbegin, r.rend(), [ & ]( const identifiers_t::value_type& p ) { return TAO_PEGTL_STRCASECMP( p.c_str(), v.c_str() ) == 0; } ); - } - - identifiers_t::reverse_iterator find_identifier( identifiers_t& r, const std::string& v ) - { - return find_identifier( r, v, r.rbegin() ); - } - - char char_node_to_char( const node_ptr& n ) - { - const char ch = n->string_view().at( 0 ); - - if( ch == '\\' ) { - static const std::unordered_map< char, char > mappings( { - { 'n', '\n' }, - { 'r', '\r' }, - { 't', '\t' }, - { '\'', '\'' }, - { '\"', '\"' }, - { '[', '[' }, - { ']', ']' }, - { '\\', '\\' }, - } ); - - auto iter = mappings.find( n->string_view().at( 1 ) ); - if( iter != std::end( mappings ) ) { - return iter->second; - } - - return static_cast< char >( std::stoi( n->string().substr( 1 ) ) ); - } - - return ch; - } - - void append_char_node( std::string& s, const node_ptr& n ) - { - if( !s.empty() ) { - s += ", "; - } - s += '\''; - - const char c = char_node_to_char( n ); - - static const std::unordered_map< char, std::string > escapes( { - { '\b', "b" }, - { '\f', "f" }, - { '\n', "n" }, - { '\r', "r" }, - { '\t', "t" }, - { '\v', "v" }, - { '\\', "\\" }, - { '\'', "\'" }, - } ); - - auto iter = escapes.find( c ); - if( iter != std::end( escapes ) ) { - s += '\\'; - s += iter->second; - } - else { - s += c; - } - - s += '\''; - } - - } // namespace - -#if defined( __cpp_exceptions ) - // Using must_if<> we define a control class which is used for - // the parsing run instead of the default control class. - // - // This improves the errors reported to the user. - // - // The following turns local errors into global errors, i.e. - // if one of the rules for which a custom error message is - // defined fails, it throws a parse_error exception (aka global - // failure) instead of returning false (aka local failure). - - // clang-format off - template< typename > inline constexpr const char* error_message = nullptr; - - template<> inline constexpr auto error_message< peg::grammar::Char > = "unterminated character literal"; - template<> inline constexpr auto error_message< peg::grammar::Expression > = "unterminated expression"; - template<> inline constexpr auto error_message< peg::grammar::Grammar > = "unterminated grammar"; - template<> inline constexpr auto error_message< peg::grammar::Range > = "unterminated range"; - // clang-format on - - struct error - { - template< typename Rule > - static constexpr auto message = error_message< Rule >; - }; - - template< typename Rule > - using control = must_if< error >::control< Rule >; -#else - template< typename Rule > - using control = normal< Rule >; -#endif - - // Since we are going to generate a parse tree, we define a - // selector that decides which rules will be included in our - // parse tree, which rules will be omitted from the parse tree, - // and which of the nodes will store the matched content. - // Additionally, some nodes will fold when they have exactly - // one child node. (see fold_one below) - - template< typename Rule > - struct selector - : pegtl::parse_tree::selector< - Rule, - pegtl::parse_tree::store_content::on< - grammar::Definition, - grammar::Prefix, - grammar::Suffix, - grammar::Sequence, - grammar::Expression, - grammar::Class, - grammar::Literal, - grammar::Identifier, - grammar::IdentStart, - grammar::Range, - grammar::Char, - grammar::AND, - grammar::NOT, - grammar::QUESTION, - grammar::STAR, - grammar::PLUS, - grammar::DOT >, - pegtl::parse_tree::fold_one::on< grammar::IdentCont > > - { - template< typename... States > - static void transform( node_ptr& n ) - { - // As we use the PEG grammar taken directly from the original PEG - // paper, some nodes may have excess content from nodes not included - // in the parse tree (e.g. Comment, Space, etc). - if( !n->children.empty() ) { - n->m_end = n->children.back()->m_end; - } - } - }; - - std::string to_string( const node_ptr& n ); - std::string to_string( const std::vector< node_ptr >& v ); - - namespace - { - std::string get_identifier( const node_ptr& n ) - { - assert( n->is_type< grammar::Identifier >() ); - std::string v = n->string(); - std::replace( v.begin(), v.end(), '-', '_' ); - return v; - } - - std::string get_identifier( const node_ptr& n, const bool print_forward_declarations ) - { - std::string v = get_identifier( n ); - const auto it = find_identifier( identifiers, v ); - if( it != identifiers.rend() ) { - return *it; - } - if( keywords.count( v ) != 0 || v.find( "__" ) != std::string::npos ) { -#if defined( __cpp_exceptions ) - throw parse_error( '\'' + n->string() + "' is a reserved identifier", n->begin() ); -#else - std::cerr << '\'' + n->string() + "' is a reserved identifier" << std::endl; - std::terminate(); -#endif - } - if( print_forward_declarations && find_identifier( identifiers_defined, v ) != identifiers_defined.rend() ) { - std::cout << "struct " << v << ";\n"; - } - identifiers.push_back( v ); - return v; - } - - std::unordered_map< std::string, parse_tree::node* > previous_identifiers; - - } // namespace - - template<> - struct selector< grammar::Definition > - : std::true_type - { - template< typename... States > - static void transform( node_ptr& n ) - { - const auto idname = get_identifier( n->children.front() ); - assert( n->children.back()->is_type< grammar::Expression >() ); - if( !previous_identifiers.try_emplace( idname, n.get() ).second ) { -#if defined( __cpp_exceptions ) - throw parse_error( "identifier '" + idname + "' is already defined", n->begin() ); -#else - std::cerr << "identifier '" + idname + "' is already defined" << std::endl; - std::terminate(); -#endif - } - } - }; - - // Finally, the generated parse tree for each node is converted to - // a C++ source code string. - - struct stringifier - { - using function_t = std::string ( * )( const node_ptr& n ); - function_t default_ = nullptr; - - std::unordered_map< std::string_view, function_t > map_; - - template< typename T > - void add( const function_t& f ) - { - map_.try_emplace( demangle< T >(), f ); - } - - std::string operator()( const node_ptr& n ) const - { - const auto it = map_.find( n->type ); - if( it != map_.end() ) { - return it->second( n ); - } - - return default_( n ); - } - }; - - stringifier make_stringifier() - { - stringifier nrv; - nrv.default_ = []( const node_ptr& n ) -> std::string { -#if defined( __cpp_exceptions ) - throw parse_error( "missing to_string() for " + std::string( n->type ), n->begin() ); -#else - std::cerr << "missing to_string() for " + std::string( n->type ) << std::endl; - std::terminate(); -#endif - }; - - nrv.add< grammar::Identifier >( []( const node_ptr& n ) { return get_identifier( n, true ); } ); - - nrv.add< grammar::Definition >( []( const node_ptr& n ) { - return "struct " + get_identifier( n->children.front(), false ) + " : " + to_string( n->children.back() ) + " {};"; - } ); - - nrv.add< grammar::Char >( []( const node_ptr& n ) { - std::string s; - append_char_node( s, n ); - return s; - } ); - - nrv.add< grammar::Sequence >( []( const node_ptr& n ) { - if( n->children.size() == 1 ) { - return to_string( n->children.front() ); - } - - return prefix + "seq< " + to_string( n->children ) + " >"; - } ); - - nrv.add< grammar::Expression >( []( const node_ptr& n ) { - if( n->children.size() == 1 ) { - return to_string( n->children.front() ); - } - - return prefix + "sor< " + to_string( n->children ) + " >"; - } ); - - nrv.add< grammar::Range >( []( const node_ptr& n ) { - if( n->children.size() == 1 ) { - return prefix + "one< " + to_string( n->children.front() ) + " >"; - } - - return prefix + "range< " + to_string( n->children.front() ) + ", " + to_string( n->children.back() ) + " >"; - } ); - - nrv.add< grammar::Class >( []( const node_ptr& n ) { - if( n->children.size() == 1 ) { - return to_string( n->children.front() ); - } - - return prefix + "sor < " + to_string( n->children ) + " >"; - } ); - - nrv.add< grammar::Literal >( []( const node_ptr& n ) { - if( n->children.size() == 1 ) { - return prefix + "one< " + to_string( n->children.front() ) + " >"; - } - - return prefix + "string< " + to_string( n->children ) + " >"; - } ); - - nrv.add< grammar::Prefix >( []( const node_ptr& n ) { - auto sub = to_string( n->children.back() ); - - if( n->children.front()->is_type< grammar::AND >() ) { - return prefix + "at< " + sub + " >"; - } - - if( n->children.front()->is_type< grammar::NOT >() ) { - return prefix + "not_at< " + sub + " >"; - } - - assert( n->children.size() == 1 ); - return sub; - } ); - - nrv.add< grammar::Suffix >( []( const node_ptr& n ) { - auto sub = to_string( n->children.front() ); - - if( n->children.back()->is_type< grammar::QUESTION >() ) { - return prefix + "opt< " + sub + " >"; - } - - if( n->children.back()->is_type< grammar::STAR >() ) { - return prefix + "star< " + sub + " >"; - } - - if( n->children.back()->is_type< grammar::PLUS >() ) { - return prefix + "plus< " + sub + " >"; - } - - assert( n->children.size() == 1 ); - return sub; - } ); - - nrv.add< grammar::DOT >( []( const node_ptr& /*unused*/ ) { - return prefix + "any"; - } ); - - return nrv; - } - - std::string to_string( const node_ptr& n ) - { - static stringifier s = make_stringifier(); - return s( n ); - } - - std::string to_string( const std::vector< node_ptr >& v ) - { - std::string result; - for( const auto& c : v ) { - if( !result.empty() ) { - result += ", "; - } - result += to_string( c ); - } - return result; - } - - } // namespace peg - -} // namespace TAO_PEGTL_NAMESPACE - -int main( int argc, char** argv ) // NOLINT(bugprone-exception-escape) -{ - using namespace TAO_PEGTL_NAMESPACE; - - if( argc != 2 ) { - std::cerr << "Usage: " << argv[ 0 ] << " SOURCE\n"; - return 1; - } - - file_input in( argv[ 1 ] ); -#if defined( __cpp_exceptions ) - try { - const auto root = parse_tree::parse< peg::grammar::Grammar, peg::selector, nothing, peg::control >( in ); - - for( const auto& definition : root->children ) { - peg::identifiers_defined.push_back( peg::get_identifier( definition->children.front() ) ); - } - - for( const auto& rule : root->children ) { - std::cout << peg::to_string( rule ) << '\n'; - } - } - catch( const parse_error& e ) { - const auto p = e.positions().front(); - std::cerr << e.what() << '\n' - << in.line_at( p ) << '\n' - << std::setw( p.column ) << '^' << '\n'; - } -#else - if( const auto root = parse_tree::parse< peg::grammar::Grammar, peg::selector, nothing, peg::control >( in ) ) { - for( const auto& definition : root->children ) { - peg::identifiers_defined.push_back( peg::get_identifier( definition->children.front() ) ); - } - - for( const auto& rule : root->children ) { - std::cout << peg::to_string( rule ) << '\n'; - } - } - else { - std::cerr << "error occurred" << std::endl; - return 1; - } -#endif - return 0; -} diff --git a/packages/PEGTL/src/example/pegtl/proto3.cpp b/packages/PEGTL/src/example/pegtl/proto3.cpp index 39d126fa9..cb7303787 100644 --- a/packages/PEGTL/src/example/pegtl/proto3.cpp +++ b/packages/PEGTL/src/example/pegtl/proto3.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> @@ -14,132 +15,7 @@ int main() #include <tao/pegtl.hpp> #include <tao/pegtl/contrib/analyze.hpp> - -namespace TAO_PEGTL_NAMESPACE::proto3 -{ - // clang-format off - struct comment_sl : seq< two< '/' >, until< eolf > > {}; - struct comment_ml : seq< one< '/' >, one< '*' >, until< seq< one< '*' >, one< '/' > > > > {}; - struct sp : sor< space, comment_sl, comment_ml > {}; - struct sps : star< sp > {}; - - struct comma : one< ',' > {}; - struct dot : one< '.' > {}; - struct equ : one< '=' > {}; - struct semi : one< ';' > {}; - - struct option; - struct message; - struct extend; - - struct odigit : range< '0', '7' > {}; - - struct ident_first : ranges< 'a', 'z', 'A', 'Z' > {}; // NOTE: Yes, no '_'. - struct ident_other : ranges< 'a', 'z', 'A', 'Z', '0', '9', '_' > {}; - struct ident : seq< ident_first, star< ident_other > > {}; - struct full_ident : list_must< ident, dot > {}; - - struct sign : one< '+', '-' > {}; - struct oct_lit : seq< one< '0' >, plus< odigit > > {}; - struct hex_lit : seq< one< '0' >, one< 'x', 'X' >, plus< xdigit > > {}; - struct dec_lit : sor< one< '0' >, seq< opt< sign >, range< '1', '9' >, star< digit > > > {}; - struct int_lit : sor< dec_lit, hex_lit, oct_lit > {}; - - struct hex_escape : if_must< one< 'x', 'X' >, xdigit, xdigit > {}; - struct oct_escape : if_must< odigit, odigit, odigit > {}; - struct char_escape : one< 'a', 'b', 'f', 'n', 'r', 't', 'v', '\\', '\'', '"' > {}; - struct escape : if_must< one< '\\' >, hex_escape, oct_escape, char_escape > {}; - struct char_value : sor< escape, not_one< '\n', '\0' > > {}; // NOTE: No need to exclude '\' from not_one<>, see escape rule. - template< char Q > - struct str_impl : if_must< one< Q >, until< one< Q >, char_value > > {}; - struct str_lit : sor< str_impl< '\'' >, str_impl< '"' > > {}; - - struct bool_lit : sor< keyword< 't', 'r', 'u', 'e' >, keyword< 'f', 'a', 'l', 's', 'e' > > {}; - - struct exp : seq < one <'E', 'e'>, opt< sign >, plus< digit > > {}; - struct float_lit_1 : seq< plus< digit >, dot, star< digit >, opt< exp > > {}; - struct float_lit_2 : seq< dot, plus< digit >, opt< exp > > {}; - struct float_lit_3 : seq< plus< digit >, exp > {}; - struct float_lit : sor < seq< opt<sign>, sor< float_lit_1, float_lit_2, float_lit_3, keyword< 'i', 'n', 'f' > > >, keyword< 'n', 'a', 'n' > > {}; - - struct constant : sor< bool_lit, full_ident, float_lit, int_lit, str_lit > {}; - - struct option_name : seq< sor< ident, if_must< one< '(' >, full_ident, one< ')' > > >, star_must< dot, ident > > {}; - struct option : if_must< keyword< 'o', 'p', 't', 'i', 'o', 'n' >, sps, option_name, sps, equ, sps, constant, sps, semi > {}; - - struct bool_type : keyword< 'b', 'o', 'o', 'l' > {}; - struct bytes_type : keyword< 'b', 'y', 't', 'e', 's' > {}; - struct double_type : keyword< 'd', 'o', 'u', 'b', 'l', 'e' > {}; - struct float_type : keyword< 'f', 'l', 'o', 'a', 't' > {}; - struct string_type : keyword< 's', 't', 'r', 'i', 'n', 'g' > {}; - - struct int32_type : keyword< 'i', 'n', 't', '3', '2' > {}; - struct int64_type : keyword< 'i', 'n', 't', '6', '4' > {}; - struct sint32_type : keyword< 's', 'i', 'n', 't', '3', '2' > {}; - struct sint64_type : keyword< 's', 'i', 'n', 't', '6', '4' > {}; - struct uint32_type : keyword< 'u', 'i', 'n', 't', '3', '2' > {}; - struct uint64_type : keyword< 'u', 'i', 'n', 't', '6', '4' > {}; - struct fixed32_type : keyword< 'f', 'i', 'x', 'e', 'd', '3', '2' > {}; - struct fixed64_type : keyword< 'f', 'i', 'x', 'e', 'd', '6', '4' > {}; - struct sfixed32_type : keyword< 's', 'f', 'i', 'x', 'e', 'd', '3', '2' > {}; - struct sfixed64_type : keyword< 's', 'f', 'i', 'x', 'e', 'd', '6', '4' > {}; - - struct builtin_type : sor< bool_type, bytes_type, double_type, float_type, string_type, int32_type, int64_type, sint32_type, sint64_type, uint32_type, uint64_type, fixed32_type, fixed64_type, sfixed32_type, sfixed64_type > {}; - - struct defined_type : seq< opt< dot >, full_ident > {}; // NOTE: This replaces both message_type and enum_type -- they have the same syntax. - - struct type : sor< builtin_type, defined_type > {}; - - struct field_option : if_must< option_name, sps, equ, sps, constant > {}; - struct field_options : if_must< one< '[' >, sps, list< field_option, comma, sp >, sps, one< ']' > > {}; - struct field_name : ident {}; - struct field_number : int_lit {}; - struct field : seq< opt< sor < keyword< 'o', 'p', 't', 'i', 'o', 'n', 'a', 'l' >, keyword< 'r', 'e', 'p', 'e', 'a', 't', 'e', 'd' > >, sps >, type, sps, field_name, sps, equ, sps, field_number, sps, opt< field_options, sps >, semi > {}; - - struct oneof_name : ident {}; - struct oneof_field : if_must< type, sps, field_name, sps, equ, sps, field_number, sps, opt< field_options, sps >, semi > {}; - struct oneof_body : sor< oneof_field, semi > {}; - struct oneof : if_must< keyword< 'o', 'n', 'e', 'o', 'f' >, sps, oneof_name, sps, one< '{' >, sps, until< one< '}' >, oneof_body, sps >, sps > {}; - - struct key_type : seq< sor< bool_type, string_type, int32_type, int64_type, sint32_type, sint64_type, uint32_type, uint64_type, fixed32_type, fixed64_type, sfixed32_type, sfixed64_type >, not_at< ident_other > > {}; - struct map_name : ident {}; - struct map_field : if_must< keyword< 'm', 'a', 'p' >, sps, one< '<' >, sps, key_type, sps, comma, sps, type, sps, one< '>' >, sps, map_name, sps, equ, sps, field_number, sps, opt< field_options, sps >, semi > {}; - - struct range : if_must< int_lit, sps, keyword< 't', 'o' >, sps, sor< int_lit, keyword< 'm', 'a', 'x' > > > {}; - struct ranges : list_must< range, comma, sp > {}; - struct field_names : list_must< field_name, comma, sp > {}; - struct reserved : if_must< keyword< 'r', 'e', 's', 'e', 'r', 'v', 'e', 'd' >, sps, sor< ranges, field_names >, sps, semi > {}; - - struct enum_name : ident {}; - struct enum_value_option : seq< option_name, sps, equ, sps, constant > {}; - struct enum_field : seq< ident, sps, equ, sps, int_lit, sps, opt_must< one< '[' >, sps, list_must< enum_value_option, comma, sp >, sps, one< ']' >, sps >, semi > {}; - struct enum_body : if_must< one< '{' >, sps, star< sor< option, enum_field, semi >, sps >, one< '}' > > {}; - struct enum_def : if_must< keyword< 'e', 'n', 'u', 'm' >, sps, enum_name, sps, enum_body > {}; - - struct message_thing : sor< field, enum_def, message, option, oneof, map_field, reserved, extend, semi > {}; - struct message_body : seq< one<'{'>, sps, star< message_thing, sps >, one<'}'> > {}; - struct message : if_must< keyword< 'm', 'e', 's', 's', 'a', 'g', 'e' >, sps, defined_type, sps, message_body > {}; - struct extend : if_must< keyword< 'e', 'x', 't', 'e', 'n', 'd' >, sps, defined_type, sps, message_body > {}; - - struct package : if_must< keyword< 'p', 'a', 'c', 'k', 'a', 'g', 'e' >, sps, full_ident, sps, semi > {}; - - struct import_option : opt< sor< keyword< 'w', 'e', 'a', 'k' >, keyword< 'p', 'u', 'b', 'l', 'i', 'c' > > > {}; - struct import : if_must< keyword< 'i', 'm', 'p', 'o', 'r', 't' >, sps, import_option, sps, str_lit, sps, semi > {}; - - struct rpc_name : ident {}; - struct rpc_type : if_must< one< '(' >, sps, opt< keyword< 's', 't', 'r', 'e', 'a', 'm' >, sps >, defined_type, sps, one< ')' > > {}; - struct rpc_options : if_must< one< '{' >, sps, star< sor< option, semi >, sps >, one< '}' > > {}; - struct rpc : if_must< keyword< 'r', 'p', 'c' >, sps, rpc_name, sps, rpc_type, sps, keyword< 'r', 'e', 't', 'u', 'r', 'n', 's' >, sps, rpc_type, sps, sor< semi, rpc_options > > {}; - struct service_name : ident {}; - struct service : if_must< keyword< 's', 'e', 'r', 'v', 'i', 'c', 'e' >, sps, service_name, sps, one< '{' >, sps, star< sor< option, rpc, semi >, sps >, one< '}' > > {}; - - struct body : sor< import, package, option, message, enum_def, service, extend, semi > {}; - - struct head : if_must< keyword< 's', 'y', 'n', 't', 'a', 'x' >, sps, equ, sps, string< '"', 'p', 'r', 'o', 't', 'o', '3', '"' >, sps, semi > {}; - struct proto : must< sps, head, sps, star< body, sps >, eof > {}; - // clang-format on - -} // namespace TAO_PEGTL_NAMESPACE::proto3 +#include <tao/pegtl/contrib/proto3.hpp> int main( int argc, char** argv ) // NOLINT(bugprone-exception-escape) { diff --git a/packages/PEGTL/src/example/pegtl/recover.cpp b/packages/PEGTL/src/example/pegtl/recover.cpp index 15baabd5e..9f6e20767 100644 --- a/packages/PEGTL/src/example/pegtl/recover.cpp +++ b/packages/PEGTL/src/example/pegtl/recover.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) // This is a small experiment with a grammar that can recover from errors. // diff --git a/packages/PEGTL/src/example/pegtl/s_expression.cpp b/packages/PEGTL/src/example/pegtl/s_expression.cpp index 28dcace3a..d0ab218c5 100644 --- a/packages/PEGTL/src/example/pegtl/s_expression.cpp +++ b/packages/PEGTL/src/example/pegtl/s_expression.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/sum.cpp b/packages/PEGTL/src/example/pegtl/sum.cpp index 6a17863ca..9867e3ab8 100644 --- a/packages/PEGTL/src/example/pegtl/sum.cpp +++ b/packages/PEGTL/src/example/pegtl/sum.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cstdlib> #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/symbol_table.cpp b/packages/PEGTL/src/example/pegtl/symbol_table.cpp index 673174c9b..5dba51e3b 100644 --- a/packages/PEGTL/src/example/pegtl/symbol_table.cpp +++ b/packages/PEGTL/src/example/pegtl/symbol_table.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/token_input.cpp b/packages/PEGTL/src/example/pegtl/token_input.cpp index 7d2795a3f..df35d4aaf 100644 --- a/packages/PEGTL/src/example/pegtl/token_input.cpp +++ b/packages/PEGTL/src/example/pegtl/token_input.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> #include <string> diff --git a/packages/PEGTL/src/example/pegtl/unescape.cpp b/packages/PEGTL/src/example/pegtl/unescape.cpp index f445435b1..10f2a1f40 100644 --- a/packages/PEGTL/src/example/pegtl/unescape.cpp +++ b/packages/PEGTL/src/example/pegtl/unescape.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> diff --git a/packages/PEGTL/src/example/pegtl/uri.cpp b/packages/PEGTL/src/example/pegtl/uri.cpp index 413caf99e..a964959c4 100644 --- a/packages/PEGTL/src/example/pegtl/uri.cpp +++ b/packages/PEGTL/src/example/pegtl/uri.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/uri_print_debug.cpp b/packages/PEGTL/src/example/pegtl/uri_print_debug.cpp index 10e42f243..f535e3a11 100644 --- a/packages/PEGTL/src/example/pegtl/uri_print_debug.cpp +++ b/packages/PEGTL/src/example/pegtl/uri_print_debug.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/uri_print_names.cpp b/packages/PEGTL/src/example/pegtl/uri_print_names.cpp index 708c3e711..953619217 100644 --- a/packages/PEGTL/src/example/pegtl/uri_print_names.cpp +++ b/packages/PEGTL/src/example/pegtl/uri_print_names.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/example/pegtl/uri_trace.cpp b/packages/PEGTL/src/example/pegtl/uri_trace.cpp index e1392f85a..d041d3343 100644 --- a/packages/PEGTL/src/example/pegtl/uri_trace.cpp +++ b/packages/PEGTL/src/example/pegtl/uri_trace.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/CMakeLists.txt b/packages/PEGTL/src/test/pegtl/CMakeLists.txt index 6bfacb4a7..eae7a9546 100644 --- a/packages/PEGTL/src/test/pegtl/CMakeLists.txt +++ b/packages/PEGTL/src/test/pegtl/CMakeLists.txt @@ -34,6 +34,7 @@ set(test_sources contrib_if_then.cpp contrib_instantiate.cpp contrib_integer.cpp + contrib_iri.cpp contrib_json.cpp contrib_parse_tree.cpp contrib_parse_tree_to_dot.cpp @@ -45,6 +46,7 @@ set(test_sources contrib_remove_last_states.cpp contrib_rep_one_min_max.cpp contrib_rep_string.cpp + contrib_separated_seq.cpp contrib_state_control.cpp contrib_to_string.cpp contrib_trace1.cpp diff --git a/packages/PEGTL/src/test/pegtl/action_enable.cpp b/packages/PEGTL/src/test/pegtl/action_enable.cpp index eaead46a3..3f7a5cb42 100644 --- a/packages/PEGTL/src/test/pegtl/action_enable.cpp +++ b/packages/PEGTL/src/test/pegtl/action_enable.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/action_match.cpp b/packages/PEGTL/src/test/pegtl/action_match.cpp index f8f448c44..af6f5709d 100644 --- a/packages/PEGTL/src/test/pegtl/action_match.cpp +++ b/packages/PEGTL/src/test/pegtl/action_match.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/actions_one.cpp b/packages/PEGTL/src/test/pegtl/actions_one.cpp index 9e8998c30..4b0f4b6fd 100644 --- a/packages/PEGTL/src/test/pegtl/actions_one.cpp +++ b/packages/PEGTL/src/test/pegtl/actions_one.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/actions_three.cpp b/packages/PEGTL/src/test/pegtl/actions_three.cpp index 8f9fa9b35..987f76457 100644 --- a/packages/PEGTL/src/test/pegtl/actions_three.cpp +++ b/packages/PEGTL/src/test/pegtl/actions_three.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/actions_two.cpp b/packages/PEGTL/src/test/pegtl/actions_two.cpp index 40f736757..77687875c 100644 --- a/packages/PEGTL/src/test/pegtl/actions_two.cpp +++ b/packages/PEGTL/src/test/pegtl/actions_two.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/argv_input.cpp b/packages/PEGTL/src/test/pegtl/argv_input.cpp index 933e29c06..0f3c283d2 100644 --- a/packages/PEGTL/src/test/pegtl/argv_input.cpp +++ b/packages/PEGTL/src/test/pegtl/argv_input.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cstring> diff --git a/packages/PEGTL/src/test/pegtl/ascii_classes.cpp b/packages/PEGTL/src/test/pegtl/ascii_classes.cpp index 2989634c0..f9e255c33 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_classes.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_classes.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_eol.cpp b/packages/PEGTL/src/test/pegtl/ascii_eol.cpp index 851eba98f..0169eda66 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_eol.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_eol.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_eolf.cpp b/packages/PEGTL/src/test/pegtl/ascii_eolf.cpp index c0016df14..c6033080c 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_eolf.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_eolf.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_forty_two.cpp b/packages/PEGTL/src/test/pegtl/ascii_forty_two.cpp index efcafff31..bf3edcbdc 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_forty_two.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_forty_two.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_identifier.cpp b/packages/PEGTL/src/test/pegtl/ascii_identifier.cpp index 2e97e5851..8c1a14b85 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_identifier.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_identifier.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_istring.cpp b/packages/PEGTL/src/test/pegtl/ascii_istring.cpp index a5a74e8b8..3f1b1ff09 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_istring.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_istring.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_keyword.cpp b/packages/PEGTL/src/test/pegtl/ascii_keyword.cpp index d4b6dd128..5d384c5f1 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_keyword.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_keyword.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_shebang.cpp b/packages/PEGTL/src/test/pegtl/ascii_shebang.cpp index 3f030ee5e..71fc843da 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_shebang.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_shebang.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_string.cpp b/packages/PEGTL/src/test/pegtl/ascii_string.cpp index 9712d3132..e128dca6a 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_string.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_string.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_three.cpp b/packages/PEGTL/src/test/pegtl/ascii_three.cpp index 2b0b1c03e..68a026deb 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_three.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_three.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/ascii_two.cpp b/packages/PEGTL/src/test/pegtl/ascii_two.cpp index 5326620bd..8c0ff0097 100644 --- a/packages/PEGTL/src/test/pegtl/ascii_two.cpp +++ b/packages/PEGTL/src/test/pegtl/ascii_two.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/buffer_input.cpp b/packages/PEGTL/src/test/pegtl/buffer_input.cpp index e5ab52ba1..eff7614e5 100644 --- a/packages/PEGTL/src/test/pegtl/buffer_input.cpp +++ b/packages/PEGTL/src/test/pegtl/buffer_input.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <string> diff --git a/packages/PEGTL/src/test/pegtl/change_action_and_state.cpp b/packages/PEGTL/src/test/pegtl/change_action_and_state.cpp index a631f9dc0..9cf3cce15 100644 --- a/packages/PEGTL/src/test/pegtl/change_action_and_state.cpp +++ b/packages/PEGTL/src/test/pegtl/change_action_and_state.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/change_action_and_states.cpp b/packages/PEGTL/src/test/pegtl/change_action_and_states.cpp index 4bd4f5ffe..9ea7faa78 100644 --- a/packages/PEGTL/src/test/pegtl/change_action_and_states.cpp +++ b/packages/PEGTL/src/test/pegtl/change_action_and_states.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/change_state.cpp b/packages/PEGTL/src/test/pegtl/change_state.cpp index bc7840256..6061b9178 100644 --- a/packages/PEGTL/src/test/pegtl/change_state.cpp +++ b/packages/PEGTL/src/test/pegtl/change_state.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/change_states.cpp b/packages/PEGTL/src/test/pegtl/change_states.cpp index 0dc0f533f..64a4b2762 100644 --- a/packages/PEGTL/src/test/pegtl/change_states.cpp +++ b/packages/PEGTL/src/test/pegtl/change_states.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/check_bytes.cpp b/packages/PEGTL/src/test/pegtl/check_bytes.cpp index b773abed9..d5dc2ad00 100644 --- a/packages/PEGTL/src/test/pegtl/check_bytes.cpp +++ b/packages/PEGTL/src/test/pegtl/check_bytes.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <tao/pegtl/contrib/check_bytes.hpp> diff --git a/packages/PEGTL/src/test/pegtl/contains.cpp b/packages/PEGTL/src/test/pegtl/contains.cpp index 68b24b73c..ee1d9a6fb 100644 --- a/packages/PEGTL/src/test/pegtl/contains.cpp +++ b/packages/PEGTL/src/test/pegtl/contains.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <type_traits> diff --git a/packages/PEGTL/src/test/pegtl/contrib_alphabet.cpp b/packages/PEGTL/src/test/pegtl/contrib_alphabet.cpp index 1aac0e762..73fdecf22 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_alphabet.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_alphabet.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_analyze.cpp b/packages/PEGTL/src/test/pegtl/contrib_analyze.cpp index fec49897a..cce72b544 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_analyze.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_analyze.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/contrib_control_action.cpp b/packages/PEGTL/src/test/pegtl/contrib_control_action.cpp index 8249dc600..512d1ba54 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_control_action.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_control_action.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <string> diff --git a/packages/PEGTL/src/test/pegtl/contrib_coverage.cpp b/packages/PEGTL/src/test/pegtl/contrib_coverage.cpp index c9661624f..b70954e24 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_coverage.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_coverage.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> diff --git a/packages/PEGTL/src/test/pegtl/contrib_function.cpp b/packages/PEGTL/src/test/pegtl/contrib_function.cpp index 3191981de..3455fe18c 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_function.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_function.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_http.cpp b/packages/PEGTL/src/test/pegtl/contrib_http.cpp index 3fb449d0a..3bdb52d59 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_http.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_http.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/contrib_if_then.cpp b/packages/PEGTL/src/test/pegtl/contrib_if_then.cpp index ceb60d602..b98a3ba59 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_if_then.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_if_then.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_rule.hpp" diff --git a/packages/PEGTL/src/test/pegtl/contrib_instantiate.cpp b/packages/PEGTL/src/test/pegtl/contrib_instantiate.cpp index fc85dec75..86566822b 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_instantiate.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_instantiate.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_integer.cpp b/packages/PEGTL/src/test/pegtl/contrib_integer.cpp index d08182a9c..f3441c0ea 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_integer.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_integer.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> @@ -173,11 +174,11 @@ namespace TAO_PEGTL_NAMESPACE test_unsigned< unsigned char >( "000256" ); test_signed< signed long long >( "0", 0 ); - test_signed< signed long long >( (std::numeric_limits< signed long long >::max)() ); - test_signed< signed long long >( (std::numeric_limits< signed long long >::min)() ); + test_signed< signed long long >( ( std::numeric_limits< signed long long >::max )() ); + test_signed< signed long long >( ( std::numeric_limits< signed long long >::min )() ); test_unsigned< unsigned long long >( "0", 0 ); - test_unsigned< unsigned long long >( (std::numeric_limits< unsigned long long >::max)() ); + test_unsigned< unsigned long long >( ( std::numeric_limits< unsigned long long >::max )() ); verify_rule< max_seq_rule< 0 > >( __LINE__, __FILE__, "a0b", result_type::success ); verify_rule< max_seq_rule< 0 > >( __LINE__, __FILE__, "ab", result_type::local_failure ); diff --git a/packages/PEGTL/src/test/pegtl/contrib_iri.cpp b/packages/PEGTL/src/test/pegtl/contrib_iri.cpp new file mode 100644 index 000000000..96890d71c --- /dev/null +++ b/packages/PEGTL/src/test/pegtl/contrib_iri.cpp @@ -0,0 +1,58 @@ +// Copyright (c) 2021 Kelvin Hammond +// Copyright (c) 2021 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) + +#if !defined( __cpp_exceptions ) +#include <iostream> +int main() +{ + std::cout << "Exception support disabled, skipping test..." << std::endl; +} +#else + +#include "test.hpp" +#include "verify_meta.hpp" +#include "verify_rule.hpp" + +#include <tao/pegtl/contrib/iri.hpp> + +namespace TAO_PEGTL_NAMESPACE +{ + using GRAMMAR = must< iri::IRI, eof >; + + void unit_test() + { + verify_analyze< GRAMMAR >( __LINE__, __FILE__, true, false ); + + verify_rule< GRAMMAR >( __LINE__, __FILE__, "https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "https://en.wiktionary.org/wiki/%E1%BF%AC%CF%8C%CE%B4%CE%BF%CF%82", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "https://en.wiktionary.org/wiki/Ῥόδος", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "https://www.myfictionαlbank.com", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "ftp://ftp.is.co.za/rfc/rfc1808.txt", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "file:///C:/Users/Benutzer/Desktop/Uniform%20Resource%20Identifier.html", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "file:///etc/fstab", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "geo:48.33,14.122;u=22.5", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "ldap://[2001:db8::7]/c=GB?objectClass?one", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "gopher://gopher.floodgap.com", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "mailto:John.Doe@example.com", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "sip:911@pbx.mycompany.com", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "news:comp.infosystems.www.servers.unix", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "data:text/plain;charset=iso-8859-7,%be%fa%be", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "tel:+1-816-555-1212", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "telnet://192.0.2.16:80/", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "urn:oasis:names:specification:docbook:dtd:xml:4.1.2", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "git://github.com/rails/rails.git", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "crid://broadcaster.com/movies/BestActionMovieEver", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "http://nobody:password@example.org:8080/cgi-bin/script.php?action=submit&pageid=86392001#section_2", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "quake://480fps.com:26000/", result_type::success ); + verify_rule< GRAMMAR >( __LINE__, __FILE__, "ftp://300.300.300.300/foo", result_type::success ); // 300.300.300.300 is a valid hostname! + + TAO_PEGTL_TEST_THROWS( parse< GRAMMAR >( memory_input( "", "" ) ) ); + } + +} // namespace TAO_PEGTL_NAMESPACE + +#include "main.hpp" + +#endif diff --git a/packages/PEGTL/src/test/pegtl/contrib_json.cpp b/packages/PEGTL/src/test/pegtl/contrib_json.cpp index b7a2945b4..62cf3b778 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_json.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_json.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/contrib_parse_tree.cpp b/packages/PEGTL/src/test/pegtl/contrib_parse_tree.cpp index 2bcd18851..04a8a0a79 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_parse_tree.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_parse_tree.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_parse_tree_to_dot.cpp b/packages/PEGTL/src/test/pegtl/contrib_parse_tree_to_dot.cpp index 98bc76f46..517092ab2 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_parse_tree_to_dot.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_parse_tree_to_dot.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_partial_trace.cpp b/packages/PEGTL/src/test/pegtl/contrib_partial_trace.cpp index d4e829852..1c8f1a977 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_partial_trace.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_partial_trace.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_predicates.cpp b/packages/PEGTL/src/test/pegtl/contrib_predicates.cpp index 0af55ea62..00403c330 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_predicates.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_predicates.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/contrib_print.cpp b/packages/PEGTL/src/test/pegtl/contrib_print.cpp index 8b19e150c..2c2bde7e7 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_print.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_print.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> diff --git a/packages/PEGTL/src/test/pegtl/contrib_raw_string.cpp b/packages/PEGTL/src/test/pegtl/contrib_raw_string.cpp index f02f9bc66..ef6abda59 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_raw_string.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_raw_string.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/contrib_remove_first_state.cpp b/packages/PEGTL/src/test/pegtl/contrib_remove_first_state.cpp index bd2aedb94..c31ef5d40 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_remove_first_state.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_remove_first_state.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_remove_last_states.cpp b/packages/PEGTL/src/test/pegtl/contrib_remove_last_states.cpp index 76dae2f5e..240c2abb0 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_remove_last_states.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_remove_last_states.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_rep_one_min_max.cpp b/packages/PEGTL/src/test/pegtl/contrib_rep_one_min_max.cpp index 2ee88f010..69dd862af 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_rep_one_min_max.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_rep_one_min_max.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/contrib_rep_string.cpp b/packages/PEGTL/src/test/pegtl/contrib_rep_string.cpp index 37b1b891e..91eda129e 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_rep_string.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_rep_string.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_separated_seq.cpp b/packages/PEGTL/src/test/pegtl/contrib_separated_seq.cpp new file mode 100644 index 000000000..1a47a5fbe --- /dev/null +++ b/packages/PEGTL/src/test/pegtl/contrib_separated_seq.cpp @@ -0,0 +1,25 @@ +// Copyright (c) 2021 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 <tao/pegtl/contrib/separated_seq.hpp> + +#include <type_traits> + +// clang-format off +struct A {}; +struct B {}; +struct C {}; +struct D {}; + +struct S {}; +// clang-format on + +using namespace TAO_PEGTL_NAMESPACE; +static_assert( std::is_base_of_v< internal::seq<>, separated_seq< S > > ); +static_assert( std::is_base_of_v< internal::seq< A >, separated_seq< S, A > > ); +static_assert( std::is_base_of_v< internal::seq< A, S, B >, separated_seq< S, A, B > > ); +static_assert( std::is_base_of_v< internal::seq< A, S, B, S, C, S, D >, separated_seq< S, A, B, C, D > > ); + +int main() +{} diff --git a/packages/PEGTL/src/test/pegtl/contrib_state_control.cpp b/packages/PEGTL/src/test/pegtl/contrib_state_control.cpp index 2a68ace18..7fc3b2b29 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_state_control.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_state_control.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/contrib_to_string.cpp b/packages/PEGTL/src/test/pegtl/contrib_to_string.cpp index a956be930..bd03ed789 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_to_string.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_to_string.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_trace1.cpp b/packages/PEGTL/src/test/pegtl/contrib_trace1.cpp index 6a0212b02..31cc5c866 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_trace1.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_trace1.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> diff --git a/packages/PEGTL/src/test/pegtl/contrib_trace2.cpp b/packages/PEGTL/src/test/pegtl/contrib_trace2.cpp index a8a35a6b0..90112f7e8 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_trace2.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_trace2.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_unescape.cpp b/packages/PEGTL/src/test/pegtl/contrib_unescape.cpp index 7b010b6b1..9efda4b90 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_unescape.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_unescape.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/contrib_uri.cpp b/packages/PEGTL/src/test/pegtl/contrib_uri.cpp index 0d855035f..9162abe33 100644 --- a/packages/PEGTL/src/test/pegtl/contrib_uri.cpp +++ b/packages/PEGTL/src/test/pegtl/contrib_uri.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/control_unwind.cpp b/packages/PEGTL/src/test/pegtl/control_unwind.cpp index b07dcdccc..468678e23 100644 --- a/packages/PEGTL/src/test/pegtl/control_unwind.cpp +++ b/packages/PEGTL/src/test/pegtl/control_unwind.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/data_cstring.cpp b/packages/PEGTL/src/test/pegtl/data_cstring.cpp index fc1e5c270..f8e86171e 100644 --- a/packages/PEGTL/src/test/pegtl/data_cstring.cpp +++ b/packages/PEGTL/src/test/pegtl/data_cstring.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/demangle.cpp b/packages/PEGTL/src/test/pegtl/demangle.cpp index c1ae7396e..b7acf79c2 100644 --- a/packages/PEGTL/src/test/pegtl/demangle.cpp +++ b/packages/PEGTL/src/test/pegtl/demangle.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/discard_input.cpp b/packages/PEGTL/src/test/pegtl/discard_input.cpp index 996d75c8a..3dac97076 100644 --- a/packages/PEGTL/src/test/pegtl/discard_input.cpp +++ b/packages/PEGTL/src/test/pegtl/discard_input.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <string> diff --git a/packages/PEGTL/src/test/pegtl/enable_control.cpp b/packages/PEGTL/src/test/pegtl/enable_control.cpp index 29c76c137..49429e391 100644 --- a/packages/PEGTL/src/test/pegtl/enable_control.cpp +++ b/packages/PEGTL/src/test/pegtl/enable_control.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <tao/pegtl.hpp> diff --git a/packages/PEGTL/src/test/pegtl/error_message.cpp b/packages/PEGTL/src/test/pegtl/error_message.cpp index d701fc24a..220cfbc52 100644 --- a/packages/PEGTL/src/test/pegtl/error_message.cpp +++ b/packages/PEGTL/src/test/pegtl/error_message.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/file_cstream.cpp b/packages/PEGTL/src/test/pegtl/file_cstream.cpp index 930510283..d51dbd2b0 100644 --- a/packages/PEGTL/src/test/pegtl/file_cstream.cpp +++ b/packages/PEGTL/src/test/pegtl/file_cstream.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <clocale> #include <cstdio> diff --git a/packages/PEGTL/src/test/pegtl/file_file.cpp b/packages/PEGTL/src/test/pegtl/file_file.cpp index 61abd5e31..fcc20af53 100644 --- a/packages/PEGTL/src/test/pegtl/file_file.cpp +++ b/packages/PEGTL/src/test/pegtl/file_file.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_file.hpp" diff --git a/packages/PEGTL/src/test/pegtl/file_istream.cpp b/packages/PEGTL/src/test/pegtl/file_istream.cpp index 41d1a84eb..cb4e3cae2 100644 --- a/packages/PEGTL/src/test/pegtl/file_istream.cpp +++ b/packages/PEGTL/src/test/pegtl/file_istream.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <cerrno> #include <fstream> diff --git a/packages/PEGTL/src/test/pegtl/file_mmap.cpp b/packages/PEGTL/src/test/pegtl/file_mmap.cpp index e9fd5804d..afa83d1c3 100644 --- a/packages/PEGTL/src/test/pegtl/file_mmap.cpp +++ b/packages/PEGTL/src/test/pegtl/file_mmap.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) // this include gives us _POSIX_MAPPED_FILES to test and mmap_input<> if it is set #include <tao/pegtl/file_input.hpp> diff --git a/packages/PEGTL/src/test/pegtl/file_read.cpp b/packages/PEGTL/src/test/pegtl/file_read.cpp index 4e2ee3bb7..963120e7d 100644 --- a/packages/PEGTL/src/test/pegtl/file_read.cpp +++ b/packages/PEGTL/src/test/pegtl/file_read.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_file.hpp" diff --git "a/packages/PEGTL/src/test/pegtl/file_\303\244\303\266\303\274\360\235\204\236_data.txt" "b/packages/PEGTL/src/test/pegtl/file_\303\244\303\266\303\274\360\235\204\236_data.txt" new file mode 100644 index 000000000..d1c7bba09 --- /dev/null +++ "b/packages/PEGTL/src/test/pegtl/file_\303\244\303\266\303\274\360\235\204\236_data.txt" @@ -0,0 +1,11 @@ +dummy content +dummy content +dummy content +dummy content +dummy content +dummy content +dummy content +dummy content +dummy content +dummy content +dummy content diff --git a/packages/PEGTL/src/test/pegtl/icu_general.cpp b/packages/PEGTL/src/test/pegtl/icu_general.cpp index 7191cbbe4..15e6e62cd 100644 --- a/packages/PEGTL/src/test/pegtl/icu_general.cpp +++ b/packages/PEGTL/src/test/pegtl/icu_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/internal_endian.cpp b/packages/PEGTL/src/test/pegtl/internal_endian.cpp index 50296fd17..f1bb6b1cb 100644 --- a/packages/PEGTL/src/test/pegtl/internal_endian.cpp +++ b/packages/PEGTL/src/test/pegtl/internal_endian.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <tao/pegtl/contrib/internal/endian.hpp> diff --git a/packages/PEGTL/src/test/pegtl/internal_file_mapper.cpp b/packages/PEGTL/src/test/pegtl/internal_file_mapper.cpp index 322aec8ba..94f6e3f5b 100644 --- a/packages/PEGTL/src/test/pegtl/internal_file_mapper.cpp +++ b/packages/PEGTL/src/test/pegtl/internal_file_mapper.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) || !defined( _POSIX_MAPPED_FILES ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/internal_file_opener.cpp b/packages/PEGTL/src/test/pegtl/internal_file_opener.cpp index cea22c227..1ca75d960 100644 --- a/packages/PEGTL/src/test/pegtl/internal_file_opener.cpp +++ b/packages/PEGTL/src/test/pegtl/internal_file_opener.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) || !defined( _POSIX_MAPPED_FILES ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/limit_bytes.cpp b/packages/PEGTL/src/test/pegtl/limit_bytes.cpp index 94e66c3f6..f376ad835 100644 --- a/packages/PEGTL/src/test/pegtl/limit_bytes.cpp +++ b/packages/PEGTL/src/test/pegtl/limit_bytes.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <tao/pegtl/contrib/limit_bytes.hpp> diff --git a/packages/PEGTL/src/test/pegtl/limit_depth.cpp b/packages/PEGTL/src/test/pegtl/limit_depth.cpp index 8fb1b2713..3f9df5163 100644 --- a/packages/PEGTL/src/test/pegtl/limit_depth.cpp +++ b/packages/PEGTL/src/test/pegtl/limit_depth.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <tao/pegtl/contrib/limit_depth.hpp> diff --git a/packages/PEGTL/src/test/pegtl/main.hpp b/packages/PEGTL/src/test/pegtl/main.hpp index f216e73dc..cb09aebbe 100644 --- a/packages/PEGTL/src/test/pegtl/main.hpp +++ b/packages/PEGTL/src/test/pegtl/main.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_MAIN_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_MAIN_HPP diff --git a/packages/PEGTL/src/test/pegtl/parse_error.cpp b/packages/PEGTL/src/test/pegtl/parse_error.cpp index 6141e3efc..7fda8f61e 100644 --- a/packages/PEGTL/src/test/pegtl/parse_error.cpp +++ b/packages/PEGTL/src/test/pegtl/parse_error.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/pegtl_string_t.cpp b/packages/PEGTL/src/test/pegtl/pegtl_string_t.cpp index ff3cc3ac8..41147a373 100644 --- a/packages/PEGTL/src/test/pegtl/pegtl_string_t.cpp +++ b/packages/PEGTL/src/test/pegtl/pegtl_string_t.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <type_traits> diff --git a/packages/PEGTL/src/test/pegtl/position.cpp b/packages/PEGTL/src/test/pegtl/position.cpp index 666f182ab..60590e474 100644 --- a/packages/PEGTL/src/test/pegtl/position.cpp +++ b/packages/PEGTL/src/test/pegtl/position.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/restart_input.cpp b/packages/PEGTL/src/test/pegtl/restart_input.cpp index 3cb964c88..648d11828 100644 --- a/packages/PEGTL/src/test/pegtl/restart_input.cpp +++ b/packages/PEGTL/src/test/pegtl/restart_input.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/result_type.hpp b/packages/PEGTL/src/test/pegtl/result_type.hpp index 91b84a6e0..9f8448f3e 100644 --- a/packages/PEGTL/src/test/pegtl/result_type.hpp +++ b/packages/PEGTL/src/test/pegtl/result_type.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_RESULT_TYPE_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_RESULT_TYPE_HPP diff --git a/packages/PEGTL/src/test/pegtl/rule_action.cpp b/packages/PEGTL/src/test/pegtl/rule_action.cpp index cdaae0c7c..c9e5a9f60 100644 --- a/packages/PEGTL/src/test/pegtl/rule_action.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_action.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_apply.cpp b/packages/PEGTL/src/test/pegtl/rule_apply.cpp index 7c5082272..6ae99f88a 100644 --- a/packages/PEGTL/src/test/pegtl/rule_apply.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_apply.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_apply0.cpp b/packages/PEGTL/src/test/pegtl/rule_apply0.cpp index 678c424dd..2c4fdfffe 100644 --- a/packages/PEGTL/src/test/pegtl/rule_apply0.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_apply0.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_at.cpp b/packages/PEGTL/src/test/pegtl/rule_at.cpp index 8d24f4e21..996081fda 100644 --- a/packages/PEGTL/src/test/pegtl/rule_at.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_at.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_bof.cpp b/packages/PEGTL/src/test/pegtl/rule_bof.cpp index e7e563ee7..7462e560b 100644 --- a/packages/PEGTL/src/test/pegtl/rule_bof.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_bof.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_bol.cpp b/packages/PEGTL/src/test/pegtl/rule_bol.cpp index 34c63020b..837fcc331 100644 --- a/packages/PEGTL/src/test/pegtl/rule_bol.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_bol.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_bytes.cpp b/packages/PEGTL/src/test/pegtl/rule_bytes.cpp index 2caa4834a..806640778 100644 --- a/packages/PEGTL/src/test/pegtl/rule_bytes.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_bytes.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_control.cpp b/packages/PEGTL/src/test/pegtl/rule_control.cpp index baaef260e..1b69ebd45 100644 --- a/packages/PEGTL/src/test/pegtl/rule_control.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_control.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_disable.cpp b/packages/PEGTL/src/test/pegtl/rule_disable.cpp index acbbb9f3f..65570121b 100644 --- a/packages/PEGTL/src/test/pegtl/rule_disable.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_disable.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_discard.cpp b/packages/PEGTL/src/test/pegtl/rule_discard.cpp index 8e5b93d1e..bce896337 100644 --- a/packages/PEGTL/src/test/pegtl/rule_discard.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_discard.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_enable.cpp b/packages/PEGTL/src/test/pegtl/rule_enable.cpp index 9741545fe..63c4d1560 100644 --- a/packages/PEGTL/src/test/pegtl/rule_enable.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_enable.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_eof.cpp b/packages/PEGTL/src/test/pegtl/rule_eof.cpp index b5098b40c..8ed986e9b 100644 --- a/packages/PEGTL/src/test/pegtl/rule_eof.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_eof.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_failure.cpp b/packages/PEGTL/src/test/pegtl/rule_failure.cpp index c1481d4d1..19044b344 100644 --- a/packages/PEGTL/src/test/pegtl/rule_failure.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_failure.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_if_apply.cpp b/packages/PEGTL/src/test/pegtl/rule_if_apply.cpp index 803d08f49..74602f9a7 100644 --- a/packages/PEGTL/src/test/pegtl/rule_if_apply.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_if_apply.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_seqs.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_if_must.cpp b/packages/PEGTL/src/test/pegtl/rule_if_must.cpp index 6dd375423..13f7332ae 100644 --- a/packages/PEGTL/src/test/pegtl/rule_if_must.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_if_must.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_if_must_else.cpp b/packages/PEGTL/src/test/pegtl/rule_if_must_else.cpp index 0b7f37059..fa28715d0 100644 --- a/packages/PEGTL/src/test/pegtl/rule_if_must_else.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_if_must_else.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_if_then_else.cpp b/packages/PEGTL/src/test/pegtl/rule_if_then_else.cpp index dc15f6fb0..b1596f690 100644 --- a/packages/PEGTL/src/test/pegtl/rule_if_then_else.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_if_then_else.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_ifmt.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_list.cpp b/packages/PEGTL/src/test/pegtl/rule_list.cpp index 106942f6d..2abf474ee 100644 --- a/packages/PEGTL/src/test/pegtl/rule_list.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_list.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_list_must.cpp b/packages/PEGTL/src/test/pegtl/rule_list_must.cpp index 9de21172d..0fab79e8a 100644 --- a/packages/PEGTL/src/test/pegtl/rule_list_must.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_list_must.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_list_tail.cpp b/packages/PEGTL/src/test/pegtl/rule_list_tail.cpp index d6e9dd59b..41296111d 100644 --- a/packages/PEGTL/src/test/pegtl/rule_list_tail.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_list_tail.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_minus.cpp b/packages/PEGTL/src/test/pegtl/rule_minus.cpp index 4fd5f5722..66c371973 100644 --- a/packages/PEGTL/src/test/pegtl/rule_minus.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_minus.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_must.cpp b/packages/PEGTL/src/test/pegtl/rule_must.cpp index f1d481132..1065457c5 100644 --- a/packages/PEGTL/src/test/pegtl/rule_must.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_must.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_not_at.cpp b/packages/PEGTL/src/test/pegtl/rule_not_at.cpp index 77cc80fc6..aa5ba3b66 100644 --- a/packages/PEGTL/src/test/pegtl/rule_not_at.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_not_at.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_opt.cpp b/packages/PEGTL/src/test/pegtl/rule_opt.cpp index c07d22a4f..f05a738b7 100644 --- a/packages/PEGTL/src/test/pegtl/rule_opt.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_opt.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_opt_must.cpp b/packages/PEGTL/src/test/pegtl/rule_opt_must.cpp index 5c1ce6e45..0adb157f6 100644 --- a/packages/PEGTL/src/test/pegtl/rule_opt_must.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_opt_must.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_pad.cpp b/packages/PEGTL/src/test/pegtl/rule_pad.cpp index 918b1c67b..2bbfc254b 100644 --- a/packages/PEGTL/src/test/pegtl/rule_pad.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_pad.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_pad_opt.cpp b/packages/PEGTL/src/test/pegtl/rule_pad_opt.cpp index 5ff4ded63..d21bb55d8 100644 --- a/packages/PEGTL/src/test/pegtl/rule_pad_opt.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_pad_opt.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_plus.cpp b/packages/PEGTL/src/test/pegtl/rule_plus.cpp index d1a82ad34..f0b0942d3 100644 --- a/packages/PEGTL/src/test/pegtl/rule_plus.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_plus.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_raise.cpp b/packages/PEGTL/src/test/pegtl/rule_raise.cpp index 25a67c813..7eaa05d97 100644 --- a/packages/PEGTL/src/test/pegtl/rule_raise.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_raise.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_rematch.cpp b/packages/PEGTL/src/test/pegtl/rule_rematch.cpp index 22fca401d..3c505d0b0 100644 --- a/packages/PEGTL/src/test/pegtl/rule_rematch.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_rematch.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2019-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_rep.cpp b/packages/PEGTL/src/test/pegtl/rule_rep.cpp index 7d7ef941f..ce259438a 100644 --- a/packages/PEGTL/src/test/pegtl/rule_rep.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_rep.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_rep_max.cpp b/packages/PEGTL/src/test/pegtl/rule_rep_max.cpp index 0b4a2c0d2..2ff63e9cc 100644 --- a/packages/PEGTL/src/test/pegtl/rule_rep_max.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_rep_max.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_rep_min.cpp b/packages/PEGTL/src/test/pegtl/rule_rep_min.cpp index 8564aabbf..614db7363 100644 --- a/packages/PEGTL/src/test/pegtl/rule_rep_min.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_rep_min.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_rep_min_max.cpp b/packages/PEGTL/src/test/pegtl/rule_rep_min_max.cpp index 95d3db631..ebf85c500 100644 --- a/packages/PEGTL/src/test/pegtl/rule_rep_min_max.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_rep_min_max.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_rep_opt.cpp b/packages/PEGTL/src/test/pegtl/rule_rep_opt.cpp index 0f5a6b677..c94a11ab7 100644 --- a/packages/PEGTL/src/test/pegtl/rule_rep_opt.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_rep_opt.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/rule_require.cpp b/packages/PEGTL/src/test/pegtl/rule_require.cpp index e6598a4ee..b93e2e3a1 100644 --- a/packages/PEGTL/src/test/pegtl/rule_require.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_require.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_seq.cpp b/packages/PEGTL/src/test/pegtl/rule_seq.cpp index b80f478b4..f5eac6bbd 100644 --- a/packages/PEGTL/src/test/pegtl/rule_seq.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_seq.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_sor.cpp b/packages/PEGTL/src/test/pegtl/rule_sor.cpp index ec4258c2c..7d087cb73 100644 --- a/packages/PEGTL/src/test/pegtl/rule_sor.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_sor.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_star.cpp b/packages/PEGTL/src/test/pegtl/rule_star.cpp index c6f46e000..df7d63e08 100644 --- a/packages/PEGTL/src/test/pegtl/rule_star.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_star.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_star_must.cpp b/packages/PEGTL/src/test/pegtl/rule_star_must.cpp index 20747861a..6b22eac70 100644 --- a/packages/PEGTL/src/test/pegtl/rule_star_must.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_star_must.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_state.cpp b/packages/PEGTL/src/test/pegtl/rule_state.cpp index 8d92565b9..f29701262 100644 --- a/packages/PEGTL/src/test/pegtl/rule_state.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_state.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_success.cpp b/packages/PEGTL/src/test/pegtl/rule_success.cpp index cf810c685..03e083536 100644 --- a/packages/PEGTL/src/test/pegtl/rule_success.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_success.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/rule_try_catch.cpp b/packages/PEGTL/src/test/pegtl/rule_try_catch.cpp index c9a510304..909cc77d9 100644 --- a/packages/PEGTL/src/test/pegtl/rule_try_catch.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_try_catch.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #if !defined( __cpp_exceptions ) #include <iostream> diff --git a/packages/PEGTL/src/test/pegtl/rule_until.cpp b/packages/PEGTL/src/test/pegtl/rule_until.cpp index 2d8c7facc..12385c15a 100644 --- a/packages/PEGTL/src/test/pegtl/rule_until.cpp +++ b/packages/PEGTL/src/test/pegtl/rule_until.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_meta.hpp" diff --git a/packages/PEGTL/src/test/pegtl/test.hpp b/packages/PEGTL/src/test/pegtl/test.hpp index 95c6a59b3..e25635ee2 100644 --- a/packages/PEGTL/src/test/pegtl/test.hpp +++ b/packages/PEGTL/src/test/pegtl/test.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_TEST_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_TEST_HPP diff --git a/packages/PEGTL/src/test/pegtl/test_empty.cpp b/packages/PEGTL/src/test/pegtl/test_empty.cpp index b213f1ea8..bfc996777 100644 --- a/packages/PEGTL/src/test/pegtl/test_empty.cpp +++ b/packages/PEGTL/src/test/pegtl/test_empty.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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" diff --git a/packages/PEGTL/src/test/pegtl/test_result.cpp b/packages/PEGTL/src/test/pegtl/test_result.cpp index 2bf7c5355..86554fb55 100644 --- a/packages/PEGTL/src/test/pegtl/test_result.cpp +++ b/packages/PEGTL/src/test/pegtl/test_result.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <sstream> diff --git a/packages/PEGTL/src/test/pegtl/test_setup.cpp b/packages/PEGTL/src/test/pegtl/test_setup.cpp index a6d87ed88..20c3737bf 100644 --- a/packages/PEGTL/src/test/pegtl/test_setup.cpp +++ b/packages/PEGTL/src/test/pegtl/test_setup.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <iostream> #include <utility> diff --git a/packages/PEGTL/src/test/pegtl/uint16_general.cpp b/packages/PEGTL/src/test/pegtl/uint16_general.cpp index b1073af47..134ecbb9b 100644 --- a/packages/PEGTL/src/test/pegtl/uint16_general.cpp +++ b/packages/PEGTL/src/test/pegtl/uint16_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/uint32_general.cpp b/packages/PEGTL/src/test/pegtl/uint32_general.cpp index 18dfd34e6..f5f259df1 100644 --- a/packages/PEGTL/src/test/pegtl/uint32_general.cpp +++ b/packages/PEGTL/src/test/pegtl/uint32_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/uint64_general.cpp b/packages/PEGTL/src/test/pegtl/uint64_general.cpp index 54aba3821..91daedb35 100644 --- a/packages/PEGTL/src/test/pegtl/uint64_general.cpp +++ b/packages/PEGTL/src/test/pegtl/uint64_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/uint8_general.cpp b/packages/PEGTL/src/test/pegtl/uint8_general.cpp index 211fd7399..ee6baff86 100644 --- a/packages/PEGTL/src/test/pegtl/uint8_general.cpp +++ b/packages/PEGTL/src/test/pegtl/uint8_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/utf16_general.cpp b/packages/PEGTL/src/test/pegtl/utf16_general.cpp index 12461ca55..7e32a8cce 100644 --- a/packages/PEGTL/src/test/pegtl/utf16_general.cpp +++ b/packages/PEGTL/src/test/pegtl/utf16_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_rule.hpp" diff --git a/packages/PEGTL/src/test/pegtl/utf32_general.cpp b/packages/PEGTL/src/test/pegtl/utf32_general.cpp index c63a44dfe..21895a9df 100644 --- a/packages/PEGTL/src/test/pegtl/utf32_general.cpp +++ b/packages/PEGTL/src/test/pegtl/utf32_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_rule.hpp" diff --git a/packages/PEGTL/src/test/pegtl/utf8_general.cpp b/packages/PEGTL/src/test/pegtl/utf8_general.cpp index c61663e1b..cab108dc6 100644 --- a/packages/PEGTL/src/test/pegtl/utf8_general.cpp +++ b/packages/PEGTL/src/test/pegtl/utf8_general.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 "verify_char.hpp" diff --git a/packages/PEGTL/src/test/pegtl/verify_char.hpp b/packages/PEGTL/src/test/pegtl/verify_char.hpp index 4f48fabc0..32290bc4f 100644 --- a/packages/PEGTL/src/test/pegtl/verify_char.hpp +++ b/packages/PEGTL/src/test/pegtl/verify_char.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_CHAR_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_CHAR_HPP diff --git a/packages/PEGTL/src/test/pegtl/verify_file.hpp b/packages/PEGTL/src/test/pegtl/verify_file.hpp index c35c97248..b8a27230c 100644 --- a/packages/PEGTL/src/test/pegtl/verify_file.hpp +++ b/packages/PEGTL/src/test/pegtl/verify_file.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_FILE_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_FILE_HPP diff --git a/packages/PEGTL/src/test/pegtl/verify_ifmt.hpp b/packages/PEGTL/src/test/pegtl/verify_ifmt.hpp index c957693b5..1dffef16e 100644 --- a/packages/PEGTL/src/test/pegtl/verify_ifmt.hpp +++ b/packages/PEGTL/src/test/pegtl/verify_ifmt.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_IFMT_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_IFMT_HPP diff --git a/packages/PEGTL/src/test/pegtl/verify_impl.hpp b/packages/PEGTL/src/test/pegtl/verify_impl.hpp index aecc70b18..6a4a93f89 100644 --- a/packages/PEGTL/src/test/pegtl/verify_impl.hpp +++ b/packages/PEGTL/src/test/pegtl/verify_impl.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_IMPL_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_IMPL_HPP diff --git a/packages/PEGTL/src/test/pegtl/verify_meta.hpp b/packages/PEGTL/src/test/pegtl/verify_meta.hpp index e7350f132..40d871210 100644 --- a/packages/PEGTL/src/test/pegtl/verify_meta.hpp +++ b/packages/PEGTL/src/test/pegtl/verify_meta.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_META_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_META_HPP diff --git a/packages/PEGTL/src/test/pegtl/verify_rule.hpp b/packages/PEGTL/src/test/pegtl/verify_rule.hpp index 390a5a369..d24076b9d 100644 --- a/packages/PEGTL/src/test/pegtl/verify_rule.hpp +++ b/packages/PEGTL/src/test/pegtl/verify_rule.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_RULE_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_RULE_HPP diff --git a/packages/PEGTL/src/test/pegtl/verify_seqs.hpp b/packages/PEGTL/src/test/pegtl/verify_seqs.hpp index 1b01aad29..487c99527 100644 --- a/packages/PEGTL/src/test/pegtl/verify_seqs.hpp +++ b/packages/PEGTL/src/test/pegtl/verify_seqs.hpp @@ -1,5 +1,6 @@ // Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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) #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_SEQS_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_SEQS_HPP diff --git a/packages/PEGTL/src/test/pegtl/visit.cpp b/packages/PEGTL/src/test/pegtl/visit.cpp index 2bdcb86e2..2b30442f0 100644 --- a/packages/PEGTL/src/test/pegtl/visit.cpp +++ b/packages/PEGTL/src/test/pegtl/visit.cpp @@ -1,5 +1,6 @@ // Copyright (c) 2020-2021 Dr. Colin Hirsch and Daniel Frey -// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ +// 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 <string> #include <vector> -- GitLab