Ruby DSL(域特定语言)存储库,示例 [英] Ruby DSL (Domain Specific Language) repositories, examples

查看:74
本文介绍了Ruby DSL(域特定语言)存储库,示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Ruby DSL(领域特定语言)的出色示例。您知道哪些存储库,项目值得一读?为什么它是(或:它们)很好的例子?

I am seeking excellent examples of Ruby DSLs (Domain Specific Languages). Which repositories, projects do you know of that are worth a read? Why is it (or: are they) great examples?

我对经过深思熟虑和设计的更复杂的例子特别感兴趣。

I am particularly interested in more complex examples that are well thought-out and designed.

推荐答案

Rake和Rack是DSL的一些很好的例子。如果您需要更多示例,请查看以下示例:

Rake and Rack are some good examples of DSL's. If you want some more examples, check these out:


  • Sinatra 是用于构建Web应用程序的非常流行的DSL,并且在GitHub上是开源的。

  • Twibot 是受Sinatra启发的一种较新的DSL,可让您创建自动响应消息和回复的Twitter机器人。

  • Sinatra is a very popular DSL for building web applications, and it's open source on GitHub.
  • Twibot is a newer DSL inspired by Sinatra that lets you create Twitter bots that automatically respond to messages and replies.

如果您想开始制作自己的书,这里有个很棒的教程,叫做在Ruby中构建DSL

If you want to get started on making your own, here's an excellent tutorial called Building a DSL in Ruby.

这篇关于Ruby DSL(域特定语言)存储库,示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆