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
Rentonn - Airbnb clone 1.0
VisualNEO for Windows 18.08.31.0
SentiVeillance SDK Trial 7.0.191272
dbForge SQL Complete 6.1
Uber for E-Scooters 1.0
ODBC Driver for MySQL 2.4
dbForge Schema Compare for MySQL 4.4
dbForge Studio for MySQL 8.1
dbForge Query Builder for MySQL 4.4
dbForge Data Compare for MySQL 5.5
Aqua Data Studio 19.5
ConyEdit for Windows 1.1.1
GetOrgChart 2.5.3.0
Database Workbench Pro 5.6.0
.Net VCL for Delphi 1.0.0.0
Top Code
Skipjack Encryption Algorithm Implementation
Python 2 Ruby Translator 1.0
xml to python dictionary and back
Open Source Chat Script 1.0
Open Tournament System 1.16.2
Top Rated
Paste phpSoftPro 1.4.1
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
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
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
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