ruby/template/vm.inc.tmpl

30 строки
580 B
C

/* -*-c-*- *********************************************************/
/*******************************************************************/
/*******************************************************************/
/**
This file is VM main loop.
----
This file is auto generated by insns2vm.rb
DO NOT TOUCH!
If you want to fix something, you must edit 'insns.def'
*/
<%=
line = 15
vm_body.gsub(/\n|__CURRENT_LINE__|__CURRENT_FILE__/){
e = $&
case e
when '__CURRENT_LINE__'
line.to_s
when '__CURRENT_FILE__'
"vm.inc"
else
line += 1
e
end
}
%>