define

package
v0.0.0-...-7198e0a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package define 用于定义处理 正则表达式对 输入的字符进行解析

Index

Constants

This section is empty.

Variables

View Source
var KeyTypes = map[string]bool{
	"int":    true,
	"float":  true,
	"double": true,
	"byte":   true,
	"string": true,
}
View Source
var KeyWords = map[string]bool{
	"begin":  true,
	"end":    true,
	"if":     true,
	"then":   true,
	"else":   true,
	"for":    true,
	"while":  true,
	"do":     true,
	"and":    true,
	"or":     true,
	"not":    true,
	"return": true,
}

Functions

func IsBracket

func IsBracket(c string) bool

func IsKeyTypes

func IsKeyTypes(key string) bool

func IsKeyword

func IsKeyword(key string) bool

func IsLetter

func IsLetter(c string) bool

func IsLiteral

func IsLiteral(c string) bool

func IsNewLine

func IsNewLine(c string) bool

func IsNumber

func IsNumber(c string) bool

func IsOperator

func IsOperator(c string) bool

func IsStringWrap

func IsStringWrap(c string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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