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 6730175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:22:35+00:00 2026-05-26T10:22:35+00:00

I have been looking around to see what’s available as far as helping users

  • 0

I have been looking around to see what’s available as far as helping users create grammars. There are various IDE’s, but… they appear to be text editors that work on the grammar file itself. I’m looking for something that works from a data-centric approach. So, let’s say I have plenty of examples of the data I want to parse with the parser. So, I want to work through that sample data and define the grammar directly from it.

Is there any existing software that does something like that?

I’m going to try to be more clear…

A data-centric approach that I’m mentioning would be where the user loaded in a data sample. Then they would select pieces of it indicating they were fields, or select items and mark them as delimiters, or such.

As opposed to most of the IDE’s I see out there are just text editors for writing in the grammar language itself.

  • 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-26T10:22:36+00:00Added an answer on May 26, 2026 at 10:22 am

    Any finite set of strings constitutes a regular language. It is trivial to write an NFA accepting such a language. From this, you can generate a DFA using the subset construction, and minimize it using the fact that DFAs need only one state for each equivalence class of the indistinguishability relation. So it’s a completely algorithmic process… getting a regex and/or grammar is then similarly straightforward.

    That being said, if you want to generate a grammar that generates the strings and, possibly, others… your problem seems ill-posed. For any finite set of strings, infinitely many grammars generate them and other strings… the infinitude of the number coming from the fact that you can generate any other strings, so long as you hit the target dataset. Your question is essentially, “given the beginning of a sequence a1, a2, …, an, …, say what the next n elements are.” This is impossible to do, unless you just want some answer… in which case you could always start with the DFA and suggest ways to generalize this (i.e., only accept more strings).

    Indeed, given e.g. a regular grammar, it’s easy to introduce new strings… so maybe use the first answer as a starting place. Note, though, that the conversion from NFA to DFA can be wildly inefficient… asymptotically exponential.

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

Sidebar

Related Questions

Alright so I have been looking around (on SO and Google) to see if
**Updated: (See below)**I have been looking around for couple of days and can't find
I have been looking around the Tank auth code to see how things are
I have been looking around for a visualization framework that would aid graph visualization
I have been looking around for solutions, and tried to implement what is often
I have been looking around ocn Google and Stackoverflow but haven't found what I
I have been looking around on the web and found some articles about the
I have been looking around and even found a couple of related answers and
I have been looking around the web for this but cannot really find a
I have been looking around for awhile now and I can't seem to find

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.