Skip to content

Releases: matthijsgroen/ebnf2railroad

Release 1.13.1

19 Feb 20:10
418ca07
Compare
Choose a tag to compare

Fixes

  • Fix height calculation of 'Choice' element. (Had to take over element from railroad-diagrams package)

Release 1.13.0

24 Oct 20:39
16bf0bc
Compare
Choose a tag to compare

Added

  • Support for markdown output, by using a .md extension on the target filename

Fixes

  • Only remove optional around repetition if repetition is zero or more

Release 1.12.0

24 Oct 20:22
c2963de
Compare
Choose a tag to compare

Changes

  • Deduplication of choices is improved. Now also works for text output, and can
    deduplicate items when one of them has a comment.

    a | a | a (* comment *) | b => a (* comment *) | b
    
  • Improve height of overview diagrams

  • Update color scheme of dark theme

  • Improved styling of blockquotes in markdown >

Fixes

  • Exception when non-terminal lacks definition

Release 1.11.1

23 Sep 19:53
366bd95
Compare
Choose a tag to compare

Fixes

  • Overview diagrams should also optimize its sub elements

Release 1.11.0

23 Sep 19:36
7c9071e
Compare
Choose a tag to compare

Added

  • Support for generation overview diagrams on root elements, skippable with
    --no-overview-diagram

  • Support for optimizing source definition file using --rewrite

  • Skip only diagram wrapping with --no-diagram-wrap

  • Breaking of long elements over multiple lines in optional items []

  • Plain text will now also be optimized when reasonable: Text will not be
    optimized when using the --no-optimizations flag.

    [ [ a ] ] => [ a ]
    [ { a } ] => { a }
    a | b | [ c | [ d | e ] ] => [ a | b | c | d | e ]
    
  • Support of detection of pure character sets. Character sets are now listed
    seperately at the bottom of the table of contents. A character sets is a
    choice of terminals, or a choice where the non-terminals are also character
    sets

  • Support for comments before an optional, placing the comment on the skip line
    and make the skip line the main line

  • Support for _ (underscore) in identifiers

Fixes

  • When elements in choices are grouped, it will now maintain the original order
  • Running out of memory for big documents

Changed

  • Show line underneath comments in railroad diagram

Release 1.10.0

16 Sep 20:35
8554aa1
Compare
Choose a tag to compare

Added

  • Support for --dump-ast and --read-ast options to allow external processing

  • Support for identifiers starting with an uppercase letter

  • Improved error reporting. Exceptions now contain a data element with the
    following:

    • line The line number of the error (starting from 1)
    • pos The position within the line of the error (starting from 1)
    • expected the types of token expected by the parser (array)
    • token the token received by the parser
  • Optimisation to prevent double skip lines

Security

  • Updated dependencies to solve security vulnerabilities

Fixed

  • Display of proper line number in CLI output

Release 1.9.0

16 Sep 20:13
fdccac2
Compare
Choose a tag to compare

Fixed

  • Improved detection for recursion and roots

Release 1.8.2

16 Sep 20:13
b2c4a17
Compare
Choose a tag to compare

Changed

  • Updated example outputs

Release 1.8.1

16 Sep 20:12
c153557
Compare
Choose a tag to compare

Changed

  • Skip all optimizations with --no-optimizations

Release 1.8.0

26 Nov 12:16
86eab90
Compare
Choose a tag to compare

Added

  • Dark and light color theme