简体   繁体   English

是否有一个用ruby编写的erlang术语解析器?

[英]Is there an erlang term parser written in ruby?

We have a logging system, and erlang OTP server is writing logs in erlang term. 我们有一个日志系统,而erlang OTP服务器正在用erlang术语编写日志。

We also have Rails interface for internal users, and I want to provide a log analysis for them. 我们还为内部用户提供了Rails接口,我想为他们提供日志分析。

I have tried to find an erlang term parser, not erlang parser, written in ruby. 我试图找到一个用ruby编写的erlang术语解析器,而不是erlang解析器。 but no luck yet. 但还没有运气。

erlang terms are simple; erlang术语很简单; atom, tuple, list(including string), binary, and pid/ref atom,tuple,list(包括string),binary和pid / ref

atom is like a symbol 原子就像一个符号

tuple is like a hash 元组就像一个哈希

list is like an array list就像一个数组

binary/pid/ref are like string binary / pid / ref就像字符串一样

Anyone knows any existing erl-to-ruby parser? 任何人都知道任何现有的erl-to-ruby解析器?

Maybe this isn't quite what you're looking for, but you could check out BERT-RPC . 也许这不是你想要的,但你可以查看BERT-RPC It has serializers, clients, and servers for various languages, including Ruby (they are listed at the bottom of the page). 它具有各种语言的序列化程序,客户端和服务器,包括Ruby(它们列在页面底部)。

BERT is new, and it seems overkill to me, and I don't see code out-there for this purpose, I made my own. BERT是新的,对我来说似乎有点矫枉过正,我没有为此目的看到代码,我自己做了。

https://github.com/bighostkim/erl_to_ruby https://github.com/bighostkim/erl_to_ruby

This module from the people at basho seems to be exactly what you need. 来自basho的人们的这个模块似乎正是你所需要的。

https://github.com/basho/erlang_template_helper https://github.com/basho/erlang_template_helper

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM