Skip to content

Marker451/ConvertComment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++风格的注释//   注释转换为标准C分风格/* */注释

/*  */风格的注释保持原样

所有的转换需要符合语法规则

注释转换需要支持注释嵌套

1、除以下两种情况的修改,源文件转换后不能有任何其它的修改:
 ①多余的注释符用空格代替
 ②//在注释开始替换为/* ,行尾增加*/
2、下面的3种情形无需转换
 ① /* 123 */ /* 456 */
 ②/* 123 */ /* 456
    */ 
 ③/* 123
     */ /* 456
      */
3、不需要考虑输入文件中不符合语法规则的注释




About

convert comment from cpp to c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published