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

  • Home
  • SEARCH
  • 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 7536541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:36:10+00:00 2026-05-30T06:36:10+00:00

Is there parser code or a parser component for Delphi or a program that

  • 0

Is there parser code or a parser component for Delphi or a program that will accept BNF (Backus-Naur Form) notation as input and produce Delphi (or pascal) code to do the parsing?

The reason for this is that I am going to be attempting to perfectly parse data sets following various versions of the GEDCOM standard (used for genealogy), and will need to process the file from state to state as tokens are reached. I would prefer an automated program to do the grunt work of setting up the basic pascal code to do the state to state processing for me.

Otherwise, I’ll have to manually build the state structures myself.

I did see the following question (and TinyPG looks good, but I need Delphi code):
Parser-generator that outputs C# given a BNF grammar?

If there isn’t such a beast, are there any other tools available that will make this task easier?

  • 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-30T06:36:11+00:00Added an answer on May 30, 2026 at 6:36 am

    I recommend you the GOLD parsing system. GOLD grammars are based on Backus-Naur form and regular expressions.

    Resources

    • gold-parser
    • Wikipedia entry page
    • Yahoo group

    Engines

    Engines for Delphi are particularly listed here.

    This one for Object Pascal by Rob van den Brink might be of interest.

    Quote:

    Rob van den Brink updated his engine for the Object Pascal Programming
    Language. His implementation uses a program template to create a
    full-functioning program. This approach embeds the parse tables
    directly in the source code. As a result, you do not need to load a
    Compiled Grammar Table file. The download contains a program template
    as well as several examples.

    Sample project using GOLD

    GOLD is powerfull, it is used as the parsing engine of dcu2pas, a Delphi Compiled Unit (dcu files) decompiler which is hosted here (bitbucket.org). Notice instead that it’s written in d.

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

Sidebar

Related Questions

Is there a library for Python that will allow me to parse c++ code?
Are there any automated tools that will parse through XAML code and clean out
Is there a built in Java code that will parse a given folder and
Does there exist a parser that generates an AST/parse tree at runtime? Kind of
Is there a built parser that I can use from C# that can parse
Is there an HTML parser or some library that automatically converts HTML tables into
There is a component that I have been using since IE7 and had never
Is there a css parser within js? like F(#a) will return me the element
I have found that writing PHP code within classes can become rather long: $this->parser->parse_syntax($this->get_language_path($this->language),
Is there a tool which is able to parse my source code (fortran, C

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.