gem-port
Installation
SKILL.md
Fil-C Ruby Gem Porting
Context
Fil-C is a memory-safe C compiler. Ruby's VALUE type becomes a pointer (struct rb_value_unit_struct *) instead of an integer. This breaks code that:
- Passes int literals where VALUE expected (Qfalse, Qtrue, ERROR_TOKEN)
- Stores VALUE in int variables
- Does bitwise ops on VALUE
- Mixes VALUE and ID types
- Uses
switchon VALUE (case labels must be integer constants)
Workflow
Each command runs independently (no persistent shell). Use ruby_3_3 not ruby.