在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1703|回复: 1

[求助] 哪位skill大神可以给我讲讲下面这个脚本

[复制链接]
发表于 2019-5-29 14:17:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
/* demo.il - this file is used for a walkthrough of the
* SKILL Development Environment.
*/
/*******************************************************
* myFunction1 - This function must
*         Count from 1 to 10000.
*         Return a list of numbers from 1 to 1000 in any order.
********************************************************/
(procedure myFunction1()
    let((x y z myList)
        for( i 1 10000
           myList = myFunction2(i)
        )
        myList
    )
)
/*******************************************************
* myFunction2 - This function must
*         Print a starting message at the 1st object.
*         Print an ending message at the 1000th object.
*         return a list of numbers less than 1000 in any order.
********************************************************/
(procedure myFunction2(object myList)
    if(myTest(object)
        then printf("Starting with object %d...\n" object)
    )
    if(object == 1000
        then printf("Ending with object %d...\n" object)
    )
    if(object < 1000
        then append(myList ncons(object ))
        else myList
    )
)
/*******************************************************
* myTest - This function must
*         return t if object equals one.
********************************************************/
(procedure myTest(object)
    if(object == 10
        then t
        else nil
    )


发表于 2019-6-18 14:51:13 | 显示全部楼层
pcb里面的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-26 16:59 , Processed in 0.018891 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表