All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added
Transition
struct for automaton transitions in theautomaton
module - Added method
new
onTransition
struct for creating new transitions - Added method
from
onTransition
struct for accessing the from state of the transition - Added method
label
onTransition
struct for accessing the label of the transition - Added method
to
onTransition
struct for accessing the to state of the transition - Added static method
from_string
onTransition
struct for creating transitions from strings - Added implementation of the
TryFrom
trait forTransition
, from&str
- Added constructor functions
transition
andtransitions
in theautomaton
module - Added
TransitionError
enum for errors occurring during transitions manipulations- Added variant
SymbolError
- Added variant
FormatError
- Added variant
- Added function
transitions_from_string
for thetokenizer
module to tokenize transitions from strings - Added enum variants for
TokenizerError
in order to cover the new tokenizing of transitions from strings- Added variant
TransitionNoTo
- Added variant
TransitionNoLabel
- Added variant
TransitionMultipleOneLine
- Added variant
TransitionEmpty
- Added variant
- Added
Automaton
struct in theautomaton
module - Added method
new
onAutomaton
struct for constructing automatons - Added method
with_q0
onAutomaton
struct for constructing automatons with a specified initial state - Added method
n
onAutomaton
struct for getting automaton states - Added method
t
onAutomaton
struct for getting automaton transitions labels - Added method
transitions
onAutomaton
struct for getting automaton transitions - Added method
q0
onAutomaton
struct for getting automaton initial state - Added method
f
onAutomaton
struct for getting automaton final states - Added method
f
onAutomaton
struct for getting automaton final states - Added method
next
onAutomaton
struct as transition function for the automaton - Added method
from_string
onAutomaton
of symbols struct as constructor for automaton of symbols - Added method
from_grammar
onAutomaton
of symbols struct as constructor for automaton of symbols - Added implementation of the
TryFrom
trait forAutomaton
, from&Grammar
- Added
AutomatonError
enum for errors occurring during automatons manipulations- Added variant
NoStates
- Added variant
TransitionError
- Added variant
InvalidGrammar
- Added variant
- Added module level function
transition
toautomaton
module to conveniently construct a transition - Added module level function
transitions
toautomaton
module to conveniently construct transitions - Added module level function
automaton
toautomaton
module to conveniently construct an automaton - Added module level function
automaton_with_q0
toautomaton
module to conveniently construct an automaton with a specified initial state
- Replaced error variant returned for production
try_from
method in order to be more precise about the occurred error when no productions are parsed from the input string
- Removed
itertools
dependency
Initial public release
Initial commit