Crygen releases its v1.0.0

Hello :waving_hand:,

After 8 months of development, I’m pleased to announce the release of Crygen v1.0.0.

In short:
Crygen is a Crystal shard that helps generate Crystal code. Its goal is to save developers from writing repetitive boilerplate so they can focus on core logic. It’s especially useful for scaffolding new projects, generating code from documentation, or building tools that output Crystal code.

For example:

require "crygen"

class_type = Crygen::Types::Class.new("MyClass")
method_type = Crygen::Types::Method.new("my_method", "String")
method_type.add_body <<-CRYSTAL
return "Hello world"
CRYSTAL
class_type.add_method(method_type)

puts class_type
class MyClass
  def my_method : String
    return "Hello world"
  end
end

Documentation URL: Getting started - Crygen Docs

Crygen API : crygen main

10 Likes