feynlag.pheno.names.ParticleNames

class feynlag.pheno.names.ParticleNames(symbols, aliases=None)[source]

The name table of a calculator.

Parameters:
  • symbols – the resolvable external symbols.

  • aliases – {name: symbol}; a symbol not in symbols raises.

__init__(symbols, aliases=None)[source]

Methods

__init__(symbols[, aliases])

as_dict()

{name: symbol}: symbol names, then aliases.

parse_process(text)

"a b > c d" → ((a, b), (c, d)) as symbols (2→2 only).

resolve(token)

The symbol named token (a symbol passes through).