SourceForge logo
SourceForge logo

bnf2xml

simple BNF parser makes xml markup of matches

Status: Beta
Brought to you by: debguy
Share This
Email in envelope

Get an email when there's a new version of bnf2xml

Linux

bnf2xml a simple BNF parser that takes text as input, searches according to a BNF query file, and outputs text marked up by the xml labels that show context.

bnf2xml is as simple to use as any text binary ie, awk(1) grep(1). bnf2xml does not require C API because it outputs simple xml labeling.

README is visible on file dl page.

EXAMPLE: $ echo "hi" | bnf2xml patternfile

<word><alph>h</alph><alph>i</alph></word>
or
<gas>hydrogen iodide</gas>

patternfile says how to find needle in haystack and what to show, ie:
<alph> ::= a | b | c | d ...
<word> ::= <alph>+

bnf2xml is a top down recursive parser. Unlike buttom up parsers like gcc(1) or some top downs, bnf2xml is completely unambiguous / resolves ALL conflicts. Slower on ave. for parsing C or than sed(1) for simple searches. Far easier than using flex/C to create a parser.

caveate: I do not suggest it's worth while to make a new gcc(1) using bnf2xml. bnf2xml an nth BETA release, but no complains yet.

Features

  • XML OUTPUT. (most that say xml mean xml input)
  • BNF for C, K&R CPL, included (xml output example on file dl page) (is not %100 complete)
  • Ability to do Binary Searching into very large strings lists.
  • Other output allows full trace of matching (including errors).
  • allows matching against a given BNF line number
  • (note: some bnf parsers can be programmed to do xml output)
  • README is visible on file download page
  • featured yet small simple end-to-end footprint
  • NEW: skip or print data (to not parse) quickly (for large file / data file work)
  • NEW: emit uniqe label, position, length for pre-post filter processing

Project Activity

See All Activity >

Categories

XML, Search, Linguistics

License

GNU General Public License version 2.0 (GPLv2)

Follow bnf2xml

bnf2xml Web Site

You Might Also Like
ADVANCE Your Career: Unlimited Access to 10,000+ Courses Icon
ADVANCE Your Career: Unlimited Access to 10,000+ Courses

Elevate your career with Coursera Plus. Access 10,000+ courses and certifications to help you grow professionally.

With Coursera Plus, you gain unlimited access to 10,000+ courses, professional certificates, and skill-building programs from top universities and companies. Whether you’re aiming for a promotion, switching careers, or acquiring new skills, Coursera Plus offers the tools you need for career success. From business and technology to leadership and data science, get certified and boost your credentials at your own pace. Join today and start building the career you’ve always dreamed of.
Start for Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of bnf2xml!

Additional Project Details

Operating Systems

Linux, BSD

Programming Language

C++

Related Categories

C++ XML Software, C++ Search Software, C++ Linguistics Software

Registered

2013年05月01日
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X

Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /