adrian-thurston / colm

The Colm Programming Language
MIT License
164 stars 31 forks source link

CGIL: cannot deref or offset based on an expression #128

Open adrian-thurston opened 3 years ago

adrian-thurston commented 3 years ago

The codegen intermediate language does not support offsetting or derferencing an expression. This prevents us from allowing the base to be anything but an identifier. This is important in ragel because we need to redefine the data variable, then offset or deref it. For example, machine.data[p]. This came up in rust code generation.