Directly use other language codes in shell script

use_other_language_in_shell

directly use other language code in shell script

code link: https://github.com/Shuiliusheng/use_other_language_in_shell

./xxx srcFilename dstFilename
************ python transform ******************

  1. python code block start with #python-code-start

  2. python code block end with #python-code-end

  3. input parameters to python codes should be defined as:
    input python_var_name=shell_varname

  4. output parameters to shell script should be defined as:
    output shell_varname=python_var_name

  5. python codes support use “import” to define the package for using

  6. python codes support define function in block

  7. python codes support call the defined python code by using the fuc define place number
    function number start with 1 to …

  8. if the input is string, it will replace all blanks to string “###” as inputs

************ C++ transform ******************

  1. C++ code block start with #C+±code-start
  2. C++ code block end with #C+±code-end
  3. input parameters to C++ codes should be defined as:
    input type cpp_var_name=shell_varname
  4. output parameters to shell script should be defined as:
    output shell_varname=cpp_var_name
  5. C++ codes support use “#include<>” to define the package for using
  6. C++ codes support define function in block.
    function start with: #subfuc; end with: #endfuc
  7. C++ codes support call the defined C++ code by using the fuc define place number
    function number start with 1 to …
  8. if the input is string, it will replace all blanks to string “###” as inputs
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值