![]() ![]() Reads an input string like read_input(), except instead of returning the finalĬonfiguration, the method returns a generator. Automaton.read_input_stepwise(self, input_str) Reads an input string into the automaton, returning the automaton's finalĬonfiguration (according to its subtype). Implemented if you create your own subclass: Automaton.read_input(self, input_str) The following methods are common to all Automaton subtypes, and must be If you wish to subclass Automaton, you can import it like so: from import Automaton Own you must use a defined subclass instead (or you may create your own As such, it cannot be instantiated on its The Automaton class is an abstract base class from which all automata You can install the latest version of Automata via pip: pip install automata-lib If you wish to migrate to Automata v6 from an older version, please follow the Huge thanks to for their invaluable code contributions to this IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Īutomata is a Python 3 library which implements the structures and algorithmsįor finite automata, pushdown automata, and Turing machines. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. License: The MIT License (MIT) Copyright (c) 2016-2022 Caleb Evans Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |