Package fuzzy :: Package storage :: Package fcl :: Module FCLParser
[hide private]
[frames] | no frames]

Module FCLParser

source code

Parser for reading FCL by the pyfuzzy package.

Classes [hide private]
  FCLParser
Functions [hide private]
 
getNorm(name, p=None)
Get an instance of a fuzzy norm with given name.
source code
 
getSet(name, params=[])
Get an instance of a fuzzy set with given name.
source code
 
getDefuzzificationMethod(name)
Get an instance of a defuzzification method with given name.
source code
 
defineOperator(name, norm)
Defines a operator (AND,OR,...) to use a given norm.
source code
 
getOperator(name)
Get the norm for previous defined operator name.
source code
 
defineStructType(name)
Remember name of a struct definition
source code
 
defineStructTypeElement(name, elem)
Add a struct element
source code
 
getStructType(name)
Get list of elements of a struct definition
source code
 
main(argv, stdin=sys.stderr, stdout=sys.stderr, stderr=sys.stderr) source code
Variables [hide private]
  __doc__ = """Parser for reading FCL by the pyfuzzy package."""
  __revision__ = '$Id: FCLParser.py,v 1.9 2013-01-09 20:10:19 rl...
  _operators = {'AND': fuzzy.norm.Min.Min(), 'OR': fuzzy.norm.Ma...
  _structs = {}
  HIDDEN = 99
  T__29 = 29
  T__28 = 28
  Real_literal = 9
  OR_ = 6
  T__27 = 27
  T__26 = 26
  T__25 = 25
  T__24 = 24
  LETTER = 10
  T__23 = 23
  T__22 = 22
  T__21 = 21
  T__20 = 20
  AND_ = 7
  EOF = -1
  Identifier = 4
  T__55 = 55
  T__56 = 56
  T__19 = 19
  T__57 = 57
  T__58 = 58
  T__16 = 16
  T__51 = 51
  T__15 = 15
  T__52 = 52
  T__18 = 18
  T__53 = 53
  T__54 = 54
  T__17 = 17
  Integer_literal_wo_sign = 11
  T__14 = 14
  T__59 = 59
  DIGIT = 5
  COMMENT = 13
  T__50 = 50
  T__42 = 42
  T__43 = 43
  T__40 = 40
  T__41 = 41
  T__46 = 46
  T__47 = 47
  T__44 = 44
  T__45 = 45
  T__48 = 48
  T__49 = 49
  T__30 = 30
  T__31 = 31
  T__32 = 32
  WS = 12
  T__33 = 33
  T__34 = 34
  Integer_literal = 8
  T__35 = 35
  T__36 = 36
  T__37 = 37
  T__38 = 38
  T__39 = 39
  tokenNames = ['<invalid>', '<EOR>', '<DOWN>', '<UP>', 'Identif...
  __package__ = 'fuzzy.storage.fcl'
Function Details [hide private]

getNorm(name, p=None)

source code 

Get an instance of a fuzzy norm with given name. Normally looks into the fuzzy.norm package for a suitable class.

getSet(name, params=[])

source code 

Get an instance of a fuzzy set with given name. Normally looks into the fuzzy.set package for a suitable class.

getDefuzzificationMethod(name)

source code 

Get an instance of a defuzzification method with given name. Normally looks into the fuzzy.defuzzify package for a suitable class.


Variables Details [hide private]

__revision__

Value:
'$Id: FCLParser.py,v 1.9 2013-01-09 20:10:19 rliebscher Exp $'

_operators

Value:
{'AND': fuzzy.norm.Min.Min(), 'OR': fuzzy.norm.Max.Max()}

tokenNames

Value:
['<invalid>',
 '<EOR>',
 '<DOWN>',
 '<UP>',
 'Identifier',
 'DIGIT',
 'OR_',
 'AND_',
...