Skip to content

Instantly share code, notes, and snippets.

View cppljevans's full-sized avatar

Larry Evans cppljevans

  • 16:59 (UTC -12:00)
View GitHub Profile
@cppljevans
cppljevans / toy_rule_parse_rule.cpp
Last active September 1, 2020 08:44
prototype_simplified_spirit_x3_rule
//Purpose:
// Simplify rule, rule_definition, parse_rule, BOOST_SPIRIT_DEFINE.
//References:
// [inline]
// https://isocpp.org/wiki/faq/inline-functions#where-to-put-inline-keyword
// https://stackoverflow.com/questions/3992980/c-inline-member-function-in-cpp-file
//===========================================================================
#include "toy_rule_parse_rule.hpp"
///////////////////////////////////////////////////////////////////////////////
// test code
@cppljevans
cppljevans / parser.hpp
Created June 5, 2024 17:53
parser.hpp revision using simplified macro
// Copyright (C) 2024 T. Zachary Laine
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PARSER_PARSER_HPP
#define BOOST_PARSER_PARSER_HPP
#include <boost/parser/parser_fwd.hpp>
#include <boost/parser/concepts.hpp>