惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - FireReprt◇FireScript地带

3ds文件转换为.X文件 MD5加密 [转载]使用SQL直接从sps数据库中恢复文档 SPS恢复问题: [ 提示数据库架构太旧问题 ] 运算符的优先级别 补上一个测试精灵动画的列子 - FireReprt◇FireScript地带 - 博客园 关于CSGL跟FireScript的连接 脚本中类的声明 加入了两个终结符号 - FireReprt◇FireScript地带 - 博客园 脚本支持数组初始化了 - FireReprt◇FireScript地带 - 博客园 IF语句多分支识别 用自定义函数来实现代理类的实例化 测试递归 这是我在C#中测试速度的代码 测试运行效率 加入了静态类的语义分析引擎 FireScript调用DLL和COM FireScript在SharePoint中的应用 识别字符串中的表达式(续一)
识别字符串中的表达式(续二)
FireReprt◇FireScript地带 · 2006-03-23 · via 博客园 - FireReprt◇FireScript地带

写了一个脚本来测试嵌套的效率:

 1 /*
 2
 3 测试一下字符串中怎么来加入表达式
 4
 5 */

 6 function  add(p1,p2)
 7 {
 8 print(p1)
 9 print(p2)
10 print(p1 + p2)
11 return  p1 + p2
12 }

13 // a="12<%1+2%>12<%5+778+add(12,3)%>6"
14 // print(a)
15 a = 23
16 print( " <% " s <% a %> d " +a%>add<%a+add(1,2)%> " )
17 str = " a "  
18 // print("<%<%"+str+"%>+"*%>")
19 // 这里是10层嵌套
20 for (i = 0 ;i < 10 ;i = i + 1 )
21 {
22   
23  a = str
24 str  = str + " <%a%> "
25 print(str)
26 print( " * " )
27 }

28  

现在字符串表示的识别是在词法分析阶段就完成了的,在10层的时候还是执行得很快的,如果把i<10改为i<50他的执行时间就慢多了