Ai
1 Star 0 Fork 0

nianshao/dm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zt.go 609 Bytes
一键复制 编辑 原始数据 按行查看 历史
罗超群 提交于 2022-03-10 08:25 +08:00 . 初始化
/*
* Copyright (c) 2000-2018, 达梦数据库有限公司.
* All rights reserved.
*/
package parser
import "strconv"
const (
MAX_DEC_LEN = 38
)
const (
NORMAL int = iota
INT
DOUBLE
DECIMAL
STRING
HEX_INT
WHITESPACE_OR_COMMENT
NULL
)
type LVal struct {
Value string
Tp int
Position int
}
func newLValNoParams() *LVal {
return new(LVal).reset()
}
func newLVal(value string, tp int) *LVal {
return &LVal{Value: value, Tp: tp}
}
func (l *LVal) reset() *LVal {
l.Value = ""
l.Tp = NORMAL
return l
}
func (l *LVal) String() string {
return strconv.Itoa(l.Tp) + ":" + l.Value
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/colin_luo/dm.git
git@gitee.com:colin_luo/dm.git
colin_luo
dm
dm
v1.0.0

搜索帮助