Grep source code files and see matching lines with useful context that
show how they fit into the code. See the loops, functions, methods,
classes, etc that contain all the matching lines. Get a sense of what's
inside a matched class or function definition. You see relevant code from
every layer of the abstract syntax tree, above and below the matches.
By default, grep-AST recurses the current directory to search all source
code files. It respects .gitignore, so it will usually "do the right
thing" in most repos if you just do grep-ast <regex> without specifying
any filenames.
You can also invoke grep-ast as gast for convenience.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-grep-ast listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py311-grep-ast-0.9.0:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.