pyexpander
2.1.2
  • Introduction
    • Macro substitution
  • Reference
    • Syntax of the pyexpander language
      • The meaning of the dollar sign
      • Indentation after the dollar sign
      • Comments
      • Commands
      • Executing python statements
      • Line continuation
      • Substitutions
      • Default values for variables
      • Variable scopes
      • Extending the pyexpander language
      • Conditionals
      • While loops
      • For loops
      • macros
      • Include files
      • Safe mode
      • Commands for EPICS macro substitution
      • Built-In variables
        • __file__
    • Internals
      • pyexpander.parser
      • pyexpander.lib
    • Scripts provided by the package
      • expander.py
      • msi2pyexpander.py
  • EPICS support
    • Setting the name of the template file
    • The “subst” command
    • The “pattern” command
    • Differences to the EPICS msi tool
  • Useful Python 3 basics
    • Introduction
    • Comments
    • A word on indentation
    • Defining variables
      • Literals
      • Setting more than one variable
      • Simple expressions
      • Mathematical functions
      • String expressions
    • For loops
  • expander.py command line options
    • -h
    • --summary
    • -f FILE --file FILE
    • --encoding
    • --output-encoding
    • --eval
    • -I PATH --include PATH
    • -s --simple-vars
    • -a --auto-continuation
    • -i --auto-indent
    • --no-stdin-msg
    • --deps
    • -d --dump
  • msi2pyexpander.py command line options
    • -h
    • --summary
    • -S --substitutionfile
    • -o FILE --outputfile FILE
  • Installing pyexpander
    • Parts of pyexpander
    • Requirements
    • Install from pypi with pip
    • Install from a debian package
    • Install from a rpm package
    • Install from source with setup.py
      • Install as root to default directories
      • Install to a separate directory
      • Install in your home
  • Source code documentation
    • pyexpander.lib module
      • BeginBlock
      • Block
        • Block.add_macro()
        • Block.eval_()
        • Block.exec_()
        • Block.export_symbols()
        • Block.extend()
        • Block.format_text()
        • Block.get_block_list()
        • Block.get_filename()
        • Block.get_indent()
        • Block.parse_elm()
        • Block.parse_loop()
        • Block.pop()
        • Block.posmsg()
        • Block.print_block_list()
        • Block.set_indent()
        • Block.set_safemode()
        • Block.set_substfile()
        • Block.setdefault()
        • Block.str_block_list()
        • Block.str_eval()
        • Block.substfile_parselist()
      • ForBlock
        • ForBlock.next_loop()
        • ForBlock.set_loop_var()
      • IfBlock
        • IfBlock.enter_elif()
        • IfBlock.enter_else()
      • IncludeBlock
      • MacBlock
        • MacBlock.pop()
      • PatternBlock
        • PatternBlock.def_vars()
        • PatternBlock.pop()
      • ResultText
        • ResultText.append()
        • ResultText.column()
        • ResultText.current_column()
        • ResultText.list_()
      • SubstBlock
      • WhileBlock
        • WhileBlock.next_loop()
      • expand()
      • expandFile()
      • expandToStr()
      • find_file()
      • keyword_check()
      • merge_dependecies()
      • one_or_two_strings()
      • parseFile()
      • parseString()
      • print_dependencies()
      • processToList()
      • processToPrint()
      • test_encoding()
    • pyexpander.parser module
      • IndexedString
        • IndexedString.rowcol()
        • IndexedString.st()
      • ParseException
      • ParsedCommand
        • ParsedCommand.args()
      • ParsedComment
      • ParsedEval
      • ParsedItem
        • ParsedItem.end()
        • ParsedItem.positions()
        • ParsedItem.rowcol()
        • ParsedItem.start()
        • ParsedItem.string()
      • ParsedLiteral
      • ParsedPureCommand
      • ParsedVar
      • change_linesep()
      • parseAll()
      • parseBackslash()
      • parseBracketed()
      • parseCode()
      • parseComment()
      • parseDollar()
      • parseStringLiteral()
      • pprint()
      • scanPyIdentList()
      • scanPyIn()
    • expander script
      • check_encoding()
      • main()
      • print_summary()
      • process_files()
      • script_shortname()
  • Pyexpander License
pyexpander
  • Search


© Copyright 2023, Helmholtz-Zentrum Berlin GmbH.

Built with Sphinx using a theme provided by Read the Docs.