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

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

博客园 - FireReprt◇FireScript地带

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

以前实现的if语句句法是:
 if ( codement )
{
 ...
}
else
{
...
}
现在加入了新的语法分析程序.可以识别一下语句:

 1function test(a)
 2{
 3 
 4if ( a<0 )
 5print "a<0:"+a
 6else if ( a > 1 )
 7
 8print "a>1"
 9
10else if ( a<10)
11print "a<10:"+a
12else if(a >10)
13
14print "a>10:"+a
15
16else
17
18print "a<1"
19
20
21}

22
23
24
25
26

上面的语句跟以下语句等价:

 1function test(a)
 2{
 3 if ( a< 0 )
 4print "a<0:"+a
 5else 
 6{
 7 if ( a>1 )
 8print "a>1"
 9else
10{
11 if ( a<10 )
12print "a<10:"+a
13else
14{
15 if ( a> 10 )
16{
17print "a>10:"+a
18}

19else
20{
21print "a<1"
22}

23}

24
25}

26
27}

28}

29

Switch语句还没有实现,可能不需要实现了吧