Releases: matthijsgroen/ebnf2railroad
Release 1.13.1
Fixes
- Fix height calculation of 'Choice' element. (Had to take over element from
railroad-diagrams
package)
Release 1.13.0
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
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
Fixes
- Overview diagrams should also optimize its sub elements
Release 1.11.0
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
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
Fixed
- Improved detection for recursion and roots
Release 1.8.2
Changed
- Updated example outputs
Release 1.8.1
Changed
- Skip all optimizations with
--no-optimizations
Release 1.8.0
Added
- Dark and light color theme