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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:12:05+00:00 2026-06-05T14:12:05+00:00

I have some files which are in some format which has to be validated.

  • 0
  1. I have some files which are in some format which has to be validated.
    example, a. first 4 characters are numeric b. first word begins at 0. c. It is the result of 3rd and 4th characters.

  2. These rules change from files to files. That is, in future some new file with different rules will be written.

  3. I am planning to write these rules/syntax in a language like xml. I am using java for programming. Java should read the syntax file and validate the necessary files.

  4. My question: is there any language for writing custom syntax which is easy to read and apply? – i think, xml is not for rules/syntax writing language

  • 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-06-05T14:12:07+00:00Added an answer on June 5, 2026 at 2:12 pm

    Take a look into the ANTLR parser generator. You can specify a grammar for which ANTLR generates a parser. You can then use that parser to parse the input file.

    Of course you will have to have the grammars for each recognized file format so you can select at runtime based on the file (extension?) which parser to use

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

Sidebar

Related Questions

I have some files which need to be sftp from machine B ( linux
I got confused with Git !! I have some files which have added and
I have some .csv files which I'm using as part of a test bench.
I have some XML files which are used to generate my webpages, however I
I am creating a Control Library project. I have some Cursor files which i
I have some 100 files in which I need to replace: Eval(something) with Eval(something).ToEncodedString()
I have some php files in a server which generate xml code in them.
I have some xml files that contain text, which are displayed on my website.
In my application,i have some .strings files.And on a button click,which is on my
I have written some code in JSP to download .docx files which is hosted

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.