Table of Contents

Class: IRule ./src/peak/util/fmtparse.py

Production rule protocol for translation between data and strings

Base Classes   
protocols.Interface
Methods   
format
getOpening
parse
withTerminators
  format 
format ( data,  write )

Pass formatted data to write()

  getOpening 
getOpening ( closing,  memo )

Possible opening characters for this match, based on closing

  parse 
parse (
        input,
        produce,
        startState,
        )

Parse input at startState, call produce(result), return state

Return a ParseError instance if no match

  withTerminators 
withTerminators ( terminators,  memo )

Return a version of this syntax using the specified terminators


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:04 2024 by HappyDoc version 2.1