utils

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractIdentifier

func ExtractIdentifier(src []rune) (string, []rune)
FirstReturn: String extracted

* SecondReturn: Rest of the string

func ExtractNum

func ExtractNum(src []rune) (string, []rune)
FirstReturn: Number extracted

* SecondReturn: Rest of the string

func ExtractString

func ExtractString(src []rune) (string, []rune)

func IsAlpha

func IsAlpha(char rune) bool

func IsInt

func IsInt(char rune) bool

func IsKeyword

func IsKeyword(src string) (token_type.TokenType, bool)
FirstReturn: Keyword type

* SecondReturn: Is the keyword valid

func IsSkippable

func IsSkippable(char rune) bool

func NextChar

func NextChar(src *[]rune) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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