Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Creates a table of names with name type and line number. (example of tokenizer)

License

Notifications You must be signed in to change notification settings

dcompane/python-names-xref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

python-names-xref

Creates a table of names with name type and line number. (example of tokenizer)

Older compilers, like COBOL, used to provide a xref table with the names defined in the program so developers could check on the name allocation.

Since the advent of more interpreted languages, practices changed, and I missed those tables.

With this little utility, I can now check that variables are conforming to some standard, and filter from the output those that do, so only the non-conforming ones will be reported. But that is left to you to develop!

For information on tokenize, https://docs.python.org/3/library/tokenize.html

  • Input: a file name

  • Output, a table with the names defined in the program, and the line numbers where they were used. (stdout).

  • No help has been created

Sample run: try against itself!!

python xref_var_table.py xref_var_table.py

About

Creates a table of names with name type and line number. (example of tokenizer)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /