如何使用运行这些代码的antlr制作编译器?

我想使用鹿角在下面运行代码的编译器有人可以帮助我编写运行这些代码的编译器吗?

int main( )
{
    int  number1 = 0 , number2; float  number3 ;
    write ( ‘ Enter a number1: ‘ , number1 );
    read (  int  , number2 );  
    write ( ‘ this is  number2 = int ‘ , number2 );
    read (  float  , number3 );
    write ( ‘ this is  number2 = float ‘ , number3 );  
}
评论