Skip to content

REPL command to print source location of a declaration #2066

Description

@brianhuffman

At the Cryptol REPL, the :? or :help command with the name of a function or type will print out the docstring attached to the function or type's declaration. It would be useful to have a similar command, perhaps :location, that would print out the source location of the named function or type, including the file name and line number.

The use case I have in mind is where we have another tool that is using the Cryptol REPL as a subprocess, where we send REPL commands and parse results. So we want to have an output that is both human-readable and machine parseable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestAsking for new or improved functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions