Giter Site home page Giter Site logo

ietf-tools / bap Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 33.0 255 KB

An ABNF parser, focusing on human-friendly error messages.

Perl 12.13% C 43.04% Makefile 1.19% Shell 4.37% M4 3.12% Yacc 19.66% Lex 14.44% C++ 0.07% Assembly 1.85% SourcePawn 0.15%

bap's People

Contributors

fenner avatar pkyzivat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bap's Issues

Update hcreate.c

hcreate.c still has 4-clause license; replace it with a 3-clause version.

Original issue reported on code.google.com by [email protected] on 16 Nov 2007 at 12:59

provide a README.md

Please provide a README, it is not clear what this bap tool does with abnf syntax file besides checking it and pretty-printing.

Support for RFC2616-style ABNFs

(this may be an enhancement request)

For the purpose of migrating the BNF rules in RCF2616, I have added minimal
support for the list (#) rule defined in
http://tools.ietf.org/html/rfc2616#section-2.1.

Note that this is probably incomplete because it has only been tested with
the rules from RFC2616 itself, in particular it only supports "#" and "1#".

I am attaching the diffs in case somebody feels like turning this into a
full-blown BAP feature.

Original issue reported on code.google.com by [email protected] on 20 Nov 2007 at 1:02

Attachments:

extraneous text in output from parsing RFC2822

If you use the online IETF tool to parse RFC2822 the output contains a bunch of text that isn't actually part of any ABNF rule. For example starting on line 21:

No special semantics are attached to these tokens. They are simply
single characters.

Does not extract ABNF from RFC 2045

What steps will reproduce the problem?
1.  Use tool via http://tools.ietf.org/abnf/
2.  Enter '2045'
3.  Only one line of ABNF is extracted from RFC 2045

What is the expected output? What do you see instead?

    Expected to see all lines of ABNF extracted.
    Only saw one line of ABNF extracted.

What version of the product are you using? On what operating system?

    Used via link at http://tools.ietf.org/abnf/


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 7 Feb 2014 at 11:19

/abnf Extract - bogons

I couldn't leave this alone. More FYI: I noticed that running the extraction on RFC 3986 not only collects duplicates, but also collects a few lines that are not even intended to be ABNF:
result = ""
$1 = http:
$2 = http
$3 = //www.ics.uci.edu
$4 = www.ics.uci.edu
$5 = /pub/ietf/uri/
$6 =
$7 =
$8 = #Related
$9 = Related
Fixing duplicates is trivial to script, but fixing these bogons looks like an AI problem. This really strengthens the argument that actual code should be embedded in and the checker applied to the xml source, going forward.

Include core rules as bult-in text in bap

Should have the core abnf rules come as part of the binary so instead of 
preloading abnf-core.txt 
there's a special --use-core-rules flag.

(This means convincing lex/yacc to scan from a file or a string, so is not a 
*no* no brainer)

Original issue reported on code.google.com by [email protected] on 15 Nov 2007 at 12:17

Remove rcsids

In the brave new DCVS world, static const char rcsid[] = is laughably obsolete. Just delete them (and any of these keywords in comments).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.