cmd

package
v0.9.2-leo-debug Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitWithError

func ExitWithError(message string)

func PrepareChecker

func PrepareChecker(program *ast.Program, filename string, must func(error)) (*sema.Checker, func(error))

PrepareChecker prepares and initializes a checker with a given code as a string, and a filename which is used for pretty-printing errors, if any

func PrepareInterpreter

func PrepareInterpreter(filename string) (*interpreter.Interpreter, *sema.Checker, func(error))

func PrepareProgram added in v0.7.0

func PrepareProgram(code string, filename string) (*ast.Program, map[string]string, func(error))

func PrepareProgramFromFile added in v0.7.0

func PrepareProgramFromFile(filename string) (*ast.Program, func(error))

func PrettyPrintError

func PrettyPrintError(writer io.Writer, err error, filename string, codes map[string]string)

Types

This section is empty.

Directories

Path Synopsis
* Cadence - The resource-oriented smart contract programming language * * Copyright 2019-2020 Dapper Labs, Inc.
* Cadence - The resource-oriented smart contract programming language * * Copyright 2019-2020 Dapper Labs, Inc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL