[−][src]Enum agda_mode::cmd::Cmd
Variants
Loads the module in file path, using
flags as the command-line options.
Compiles the module in file path using
the backend backend, using flags as the command-line options.
Show unsolved metas. If there are no unsolved metas but unsolved constraints, show those instead.
Shows all the top-level names in the given module, along with their types. Uses the top-level scope.
Shows all the top-level names in scope which mention all the given identifiers in their type.
SolveAll(Rewrite)Solve all goals whose values are determined by the constraints.
SolveOne(InputWithRewrite)Solve the goal at point whose value is determined by the constraints.
AutoOne(GoalInput)Solve the goal at point by using Auto.
Solve all goals by using Auto.
Parse the given expression (as if it were defined at the
Parse and type check the given expression (as if it were defined at the top-level of the current module) and normalise it.
Fields of ComputeToplevel
compute_mode: ComputeModecode: Stringloads syntax highlighting
information for the module in path, and asks Emacs to apply
highlighting info from this file.
If the module does not exist, or its module name is malformed or cannot be determined, or the module has not already been visited, or the cached info is out of date, then no highlighting information is printed.
This command is used to load syntax highlighting information when a new file is opened, and it would probably be annoying if jumping to the definition of an identifier reset the proof state, so this command tries not to do that. One result of this is that the command uses the current include directories, whatever they happen to be.
Fields of LoadHighlightingInfo
path: StringTells Agda to compute token-based highlighting information for the file.
This command works even if the file's module name does not match its location in the file system, or if the file is not scope-correct. Furthermore no file names are put in the generated output. Thus it is fine to put source code into a temporary file before calling this command. However, the file extension should be correct.
If the second argument is 'Remove', then the (presumably temporary) file is removed after it has been read.
Highlight(GoalInput)Tells Agda to compute highlighting information for the expression just spliced into an interaction point.
ShowImplicitArgs(bool)Tells Agda whether or not to show implicit arguments.
Toggle display of implicit arguments.
If the range is 'noRange', then the string comes from the minibuffer rather than the goal.
Refine(GoalInput)Context(InputWithRewrite)HelperFunction(InputWithRewrite)Infer(InputWithRewrite)GoalType(InputWithRewrite)ElaborateGive(InputWithRewrite)Grabs the current goal's type and checks the expression in the hole against it. Returns the elaborated term.
GoalTypeContext(InputWithRewrite)Displays the current goal and context.
GoalTypeContextInfer(InputWithRewrite)Displays the current goal and context and infers the type of an expression.
GoalTypeContextCheck(InputWithRewrite)Grabs the current goal's type and checks the expression in the hole against it
ShowModuleContents(InputWithRewrite)Shows all the top-level names in the given module, along with their types. Uses the scope of the given goal.
MakeCase(GoalInput)Fields of Compute
compute_mode: ComputeModeinput: GoalInputWhyInScope(GoalInput)WhyInScopeToplevel(String)Displays version of the running Agda
Abort the current computation. Does nothing if no computation is in progress.
Methods
impl Cmd[src]
pub fn load_simple(path: String) -> Self[src]
pub fn goal_type(input: GoalInput) -> Self[src]
Produces CurrentGoal.
pub fn context(input: GoalInput) -> Self[src]
pub fn split(input: GoalInput) -> Self[src]
pub fn search_module(search: String) -> Self[src]
pub fn infer(input: GoalInput) -> Self[src]
Produces InferredType.
pub fn give(input: GoalInput) -> Self[src]
Trait Implementations
Auto Trait Implementations
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
impl RefUnwindSafe for Cmd
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,