Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Excel Add-in for DB2 1.7
wolfSSL 4.0.0
EntityDAC Express 2.2
SecureBridge 9.1
C# HTML to PDF 2019.6.5
PHP Ecommerce Script 3.6
Devart SSIS Data Flow Components 1.11
dbForge Data Compare for PostgreSQL 3.2.15
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
Top Code
iScripts CyberMatch 1.3
dbForge Data Compare for PostgreSQL 2.0
SecureBridge 8.0
dbForge Studio for SQL Server 5.5
Database Workbench Pro 5.6.8
PHP Ecommerce Script 1.0.4
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
ATN Resume Finder 2.0
Excel Add-in for DB2 1.1
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
EntityDAC Express 2.2
Hide Your Source Code
Compiling Components in Visual Basic for ASP
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Line Oriented State Machine 
File ID: 65340






Line Oriented State Machine 
Download Line Oriented State Machine http://code.activestate.com/recipes/577335-martin-gardners-the-monkey-and-the-coconuts-proble/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 13
Submit Rating:
Line Oriented State Machine  Description
Description: State machine for processing text files on a line-by-line basis using regular
expressions to determine transition to next state.

Developed from sample code from "Text Processing in Python" by David Mertz,pp. 274-280.

License: Freeware

Related: Text

O/S:Windows

Downloads: 13



More Similar Code

The operation of the state machine is defined by transitions. The transitions
control what value is returned and which new state to switch to, given an
"event" input when in a certain current "state". State machines have many
applications such as games, process controls, and language parsing.



This program parses the logfile given by the execution of the keylogger
command 'script -c "xinput test ID_CODE" | cat LOG_FILE' and
it is based on a Finite State Machine (FSM) to manage all
the possible combinations of...



This is a simple state machine that takes a functional approach.
It requires trampoline from pysistence.func to avoid the recursion limit.

Namedtuples are used to define the different states.
globals() is used to reference the...



General state machine mechanism plus a specialized version, LineStateMachine, for processing text files based by using regular expressions to determine state transitions.



This is a state machine template. It can be used as a state machine, or a state machine tester. There is very little setup required and all the states are added based on the state docstring. I made this after a friend came to me asking how I'd...



A very simple idiom for implementing a state machine.



A very simple but powerful shell script which enables writing ad-hoc Python scripts for processing line-oriented input. It executes the following code template:

$INIT
for line in sys.stdin:
$LOOP
$END



This recipe shows a Finite State Machine (FSM) that can be used for small parsing tasks. The code is quite simple. The bulk of it is comments. In addition to state this FSM also maintains a user defined "memory". So this FSM is a...



ShadowJack is a collection of infrastructure components, including a rule engine, rule driven GUI, state machine engine, and graph engine. Currently only the graph engine is available.



This is an ANSI c compliant library for state machine use. It uses very fast algorithms and includes many features: nested state, history state, parallel state mechanisms and debug capabilities.

User Review for Line Oriented State Machine
- required fields
     

Please enter text on the image