Giter VIP home page Giter VIP logo

gromit's Introduction

Gromit

Build Status Go Report Card

is a grammar fuzzer that is ideally suited for complex text and binary grammars. Gromit uses EBNF format for grammar specification. EBNF is an Extended Backus-Naur Form (also known as Context-Free Grammars). It is the standard format for the specification and documentation of programming languages. Extended BNF is defined in the ISO/IEC 14977 standard.

How-To Use

~$ ./gromit -file ebnf/palindrome.ebnf -start palindrome
khbhk

See screencast.

gromit's People

Stargazers

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

Watchers

 avatar  avatar

Forkers

pacohope

gromit's Issues

Numbered repetitions?

Me again. :) Again, I'm sure this is a low priority project for you, so please don't think I'm expecting some urgent support or something. :) Looking at the ISO/IEC definition it seems like there's a way to specify Exactly n of these.

According to their syntax one could write:

aa = "A" . 
bb = 3 * aa "B" .

And then you'd have productions like

aa: A
bb: AAAB

I couldn't find a way to do this syntax and have gromit recognise it. Perhaps this is a function of the EBNF library you're importing and not a function of gromit itself. Hard for me to tell.

-padding option is ignored

Hi. I know you've just put this little utility out there and it's not some critical production thing. I've had a really productive morning thanks to it, though. I've been building out a grammar and testing it incrementally with this tool. Thanks!

The -padding option is parsed and mostly plumbed in, but fundamentally it is ignored. This has been a bit difficult for me because it is putting spaces in around terminals and I can't figure out how or where they are. I'm not much of a go programmer myself. Would you mind propagating the padding option, in particular making it possible to have no padding around terminals whatsoever?

Thanks,
Paco

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.