@rosylilly もしジェネレータでいい=Goがでてくればそれ自体の実装言語はどうでもいい、なら、ANTLR(割と有名なやつ)も使えそうです。
https://github.com/antlr/antlr4/blob/master/doc/go-target.md
Notices by 斎藤ただし (tadd@best-friends.chat)
-
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Sunday, 18-May-2025 12:11:27 JST 斎藤ただし
-
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Sunday, 18-May-2025 03:43:31 JST 斎藤ただし
@rosylilly あともし「生成する」というところがめんどくさかったら、「パーサーコンビネーター」っていう名前で、ふつーの実行時の関数として完結するライブラリもあります。ぱっとググったら、たとえばこんなのです(知ってたらすみません)。
https://github.com/prataprc/goparsec/blob/master/html_test.go#L80In conversation from best-friends.chat permalink Attachments
-
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Sunday, 18-May-2025 01:03:29 JST 斎藤ただし
@rosylilly なるほど〜〜。
自分はGoほぼ使ったことがないので有名ライブラリを知らない上、探し方すらよく分かってないので、具体的なアドバイスができなくてすみません。ただ「新しい」とは言っても、「1960/70年代からある研究に比べれば」という感じなので、実はそんなに警戒する必要がない…といいな……。In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Saturday, 17-May-2025 21:49:14 JST 斎藤ただし
@rosylilly なるほど。今回のニーズが分からないですけど、「パーサー生成させるのが便利」ってだけならもちろん、他のツールでもいいと思いますよ。
ただここに書いてあるようなケースで「他よりもGLLの方が便利〜」のいうのが分かってるのであれば、これもいいのかも。
あとともかく、GLLって手法・提案それ自体が新しそうなので、ツールもノウハウもそんなに蓄積されてないと思われます。In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Saturday, 17-May-2025 21:46:12 JST 斎藤ただし
@rosylilly それで、GoGLLはLR系も出せるるっぽいですね。もし1つの入力(BNF)に対してGLLで出したプログラム動きが微妙だ、とかなら、一度LRにしてそっちの挙動と比べるのはヒントになるかも、とは思いました。
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Saturday, 17-May-2025 21:38:59 JST 斎藤ただし
@rosylilly 今真面目に見たんですがなんだか面白そう!! 引用にあるSLEとかむっちゃ見覚えがある会でうけましたww
GLLというの自体を知らなかったんですが、それなりに最近提案されたやつなんですねー。ネタで話してたLR/LALR/IETRとかとも近い話だと理解しました。In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Saturday, 17-May-2025 11:43:15 JST 斎藤ただし
@rosylilly ふーむむ、これですかね?
https://github.com/chennqqi/godll
どの辺がBNFなのか、ほんとにこれなのかも、さっぱり分からず🙏In conversation from best-friends.chat permalink Attachments
-
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Saturday, 17-May-2025 01:45:49 JST 斎藤ただし
@rosylilly ではマジレスすると、どのBNF使ってます?
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Saturday, 17-May-2025 01:39:09 JST 斎藤ただし
@rosylilly (最高のツッコミあざす!!!)
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Friday, 16-May-2025 23:24:49 JST 斎藤ただし
@rosylilly 出遅れた。
B・N・Fは日本の投資家。ジェイコム株ご発注事件により一瞬で巨万の富を気付いた「ジェイコム男」としても知られる。(略)In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Monday, 12-May-2025 14:39:06 JST 斎藤ただし
@rosylilly はいw 100%あぐりーです
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Monday, 12-May-2025 14:37:39 JST 斎藤ただし
@rosylilly 収入がないだけです😇
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Monday, 12-May-2025 14:37:09 JST 斎藤ただし
@rosylilly とうに過ぎてますがなっていません!!
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Sunday, 04-May-2025 01:00:42 JST 斎藤ただし
@river39 めちゃくちゃ言ったからでは……!?
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Thursday, 01-May-2025 16:30:16 JST 斎藤ただし
@rosylilly 主観と理性(客観)が強弱のない排他的なもの、という前提がある時点で理性的でなさそう。もしそれがないなら論理として破綻してそう
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Thursday, 24-Apr-2025 22:32:23 JST 斎藤ただし
これ絶対「当選」て書いてあるフィッシング詐欺流行るでしょ、特に今日明日。みんなモチベーションが半端ないし
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Thursday, 27-Mar-2025 01:48:41 JST 斎藤ただし
@rosylilly 17で働き始めるのは今からできないですが、大学やら院は何歳でも出来るのは違いですね。
あと何より、なんだか楽しいよと主張する人がここに約一人います。In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Thursday, 27-Mar-2025 01:46:52 JST 斎藤ただし
@rosylilly 体験してみると一番イメージが掴めるかも👀
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Thursday, 27-Mar-2025 01:43:47 JST 斎藤ただし
@rosylilly 大学院生はそんなに勉強じゃないので(研究がメイン)ご理解よろ
In conversation from best-friends.chat permalink -
Embed this notice
斎藤ただし (tadd@best-friends.chat)'s status on Tuesday, 25-Feb-2025 14:27:34 JST 斎藤ただし
フジサンケイグループの代表に「ご飯行きましょう」と誘って、着席したら記者会見場だったというドッキリ
In conversation from best-friends.chat permalink