Package madgraph :: Package iolibs :: Module ufo_expression_parsers
[hide private]
[frames] | no frames]

Module ufo_expression_parsers

source code

Parsers for algebraic expressions coming from UFO, outputting into different languages/frameworks (Fortran and Pythia8). Uses the PLY 3.3 Lex + Yacc framework

Classes [hide private]
  ModelError
Appropriate Error for a wrong parsing
  UFOExpressionParser
A base class for parsers for algebraic expressions coming from UFO.
  UFOExpressionParserFortran
A parser for UFO algebraic expressions, outputting Fortran-style code.
  UFOExpressionParserMPFortran
A parser for UFO algebraic expressions, outputting Fortran-style code for quadruple precision computation.
  UFOExpressionParserCPP
A parser for UFO algebraic expressions, outputting C++-style code.
  UFOExpressionParserPythonIF
An ad hoc parser for UFO algebraic expressions with if statement, outputting Python-style code, with the conditional 'if' expressions simplified using pre-defined set of variables specified when instanciating this parser.
Variables [hide private]
  root_path = '/Users/omattelaer/Documents/workspace/madgraph5/M...
  logger = logging.getLogger('madgraph.ufo_parsers')
  __package__ = 'madgraph.iolibs'
Variables Details [hide private]

root_path

Value:
'/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6_5/madgra\
ph'