# Lexing Crystal for a Crystal to Ruby transpiler

**URL:** <https://forum.crystal-lang.org/t/lexing-crystal-for-a-crystal-to-ruby-transpiler/8676>\
**Category:** Community\
**Created:** [January 26, 2026, 10:44am UTC](https://forum.crystal-lang.org/t/lexing-crystal-for-a-crystal-to-ruby-transpiler/8676 "2026-01-26T10:44:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![initd](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/initd/32/3182_2.png) [@initd](https://forum.crystal-lang.org/u/initd)\
**Post date:** [January 26, 2026, 10:44am UTC](https://forum.crystal-lang.org/t/lexing-crystal-for-a-crystal-to-ruby-transpiler/8676/1 "2026-01-26T10:44:00Z")

</div>

I tried to make a crystal lexer like prism, as a source to source transpiler

but I found I can’t lex the crystal macro code correctly.

Any one interest ?

Here is the project: [GitHub - initdc/octa: A source to source transpiler, ship crystal to all ruby supported platform](https://github.com/initdc/octa)
