gorillang

package module
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

gorillang

ウホゥホウホッッホゥ ウホゥホウホ!!ゥゥ ウホゥホウホ!!オホ ウホ?ゥゥオホ!! ウホうほホッウウウッホ ウホウォホホウウウホ ウホホホウォ ウホゥホウホォ!ウウ ウホゥホウホウッホッ! ウホゥホウホッッホッ ウホホッウォウォ?

元ネタ様

グランブルーファンタジー ゴリラ語翻訳ジェネレーター『うほうほ〜っ!』

https://xn--bck3aza1a2if6kra4ee0hf.gamewith.jp/article/show/107716

このコマンドラインツールのゴリラ語は上記元ネタ様のゴリラ後を分析して作成したので互換性があります。

インストール

MacOS

brew tap momotaro98/gorillang
brew install momotaro98/gorillang/gorillang

Go言語と$GOPATHが通った$PATHを持つ奇特な方

go install github.com/momotaro98/gorillang/cmd/gorillang@latest

遊び方

日本語 → ゴリラ語

$ gorillang encode こんにちは
ウホゥホウホホッゥホ ウホゥホウホオホゥホ ウホゥホウホウォッッ ウホゥホウホウォウウ ウホゥホウホウォウッホ

ゴリラ語 → 日本語

$ gorillang decode ウホゥホウホホッゥホ ウホゥホウホオホゥホ ウホゥホウホウォッッ ウホゥホウホウォウウ ウホゥホウホウォウッホ
こんにちは

Tips for MacOS users

生成するゴリラ語をどこかへコピペしたい場合、パイプでpbcopyへつなぐ。

$ gorillang encode おはよう | pbcopy

クリップボードにコピーしたゴリラ語を人間の言葉で表示したい場合、pbpastexargsを以下のように使う。

$ pbpaste | xargs gorillang decode
おはよう

Documentation

Index

Constants

View Source
const (
	ILLEGAL    = "ILLEGAL"
	EOF        = "EOF"
	WHITESPACE = ` `
	PREFIX     = "ウホ"
	X0         = "ウホ"
	X1         = "ウウ"
	X2         = "ホホ"
	X3         = "ゥホ"
	X4         = "ホゥ"
	X5         = "ホッ"
	X6         = "ウォ"
	X7         = "うほ"
	X8         = "?"
	X9         = "オホ"
	XA         = "ゥゥ"
	XB         = "ッッ"
	XC         = "ッ!"
	XD         = "ォ!"
	XE         = "!!"
	XF         = "ウッホ"
)

Variables

This section is empty.

Functions

func Decode

func Decode(input string) string

func Encode

func Encode(input string) string

Types

type CodePoint

type CodePoint string

type Lexer

type Lexer struct {
	// contains filtered or unexported fields
}

func NewLexer

func NewLexer(input string) *Lexer

func (*Lexer) NextToken

func (l *Lexer) NextToken() Token

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(l *Lexer) *Parser

func (*Parser) ParseSentence

func (p *Parser) ParseSentence() *Sentence

type Sentence

type Sentence struct {
	CodePoints []CodePoint
}

func (Sentence) String

func (s Sentence) String() string

type Token

type Token struct {
	Type    TokenType
	Literal []rune
}

type TokenType

type TokenType string

Directories

Path Synopsis
cmd
gorillang command

Jump to

Keyboard shortcuts

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