Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6009299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:57:03+00:00 2026-05-23T01:57:03+00:00

Boost Spirit library permits to Track the Input Position While Parsing . This mechanism

  • 0

Boost Spirit library permits to Track the Input Position While Parsing. This mechanism allows informing about location of a parser error during parsing.

I’d like to preserve original location for all parsed entities together with them for future use. (For example, AST semantic verification.) What would be the recommended way to do so?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:57:04+00:00Added an answer on May 23, 2026 at 1:57 am

    If you need the position of all entities you might be better off using a lexer, which produces tokens optionally carrying positional information about the matched input (see here). If a lexer is not an option you might utilize the new on_success() construct (available in SVN or starting with Boost V1.47), which works similarily to on_error(), except that your supplied handler will be invoked on a successful parse of the rule it is associated with. The the conjure example to see how it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can Spirit (part of Boost C++ library) be used to parse out binary data
I am using Boost Spirit parser, and as the parser is parsing, semantic actions
I am experiencing a crash while using the Boost.Spirit and Boost.Thread libraries in my
Say I have a Boost Spirit grammar like this, where a parent rule passes
i found this in this file: http://www.boost.org/doc/libs/1_43_0/boost/spirit/home/phoenix/core/actor.hpp What does this syntax means? struct actor
I'd like to support something like C++'s #include mechanism in a boost spirit parser.
I am following the quickstart guide for boost::spirit, and I get this compiler warning
I am trying to write a python parser with boost::spirit library. Here is the
I am trying to use Boost.Spirit (V. 2.5) library to create a mini-calculator. Features
I'm wondering how good is the Boost Spirit Library. I have begun to read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.