vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
982 stars 118 forks source link

A way to globally define preprocessor variables #331

Open tueda opened 4 years ago

tueda commented 4 years ago

A missing feature of the FORM preprocessor is to define new global variables inside a procedure. (See also #102.) #redefine works only for already-defined variables.

#procedure AddField(name,mass,width)
* These properties are forgotten!
  #redefine `name'Mass "`mass'"
  #redefine `name'Width "`width'"
#endprocedure

#call AddField(Photon,0,0)