internal

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mathcalc 提供数学表达式解析和计算功能

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDivisionByZero      = errors.New("除以零错误")
	ErrUndefinedVariable   = errors.New("未定义的变量")
	ErrUnsupportedOperator = errors.New("不支持的运算符")
	ErrInvalidExpression   = errors.New("无效的表达式")
	ErrInvalidArgument     = errors.New("无效的参数")
	ErrMaxRecursionDepth   = errors.New("超过最大递归深度")
	ErrExecutionTimeout    = errors.New("执行超时")
)

错误类型定义

Functions

This section is empty.

Types

type ParseError

type ParseError struct {
	Pos     int    // 错误位置
	Message string // 错误消息
	Cause   error  // 原始错误
}

ParseError 解析错误结构体,包含详细的错误信息

func (*ParseError) Error

func (e *ParseError) Error() string

Error 实现error接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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