這是一個基于.NET的元腳本語言。顧名思義就是用來創造腳本語言的框架。項目主頁:http://code.google.com/p/viscript/
主要思想很簡單:
用方法來創造句法,用句號隔開句子,然后由句子構成腳本。在構成句法方面,支持用下劃線表達字符,參數任意位置插入,參數類型可擴展,支持從句,支持引號表示字面意義,支持歧義分析。
未來的發展方向是寫一個IDE,并支持重構。
Sample:
Sentence <-> Method
c# 代碼
- [Scriptable]
- void user_login_with_password(string user, string password)
Script <-> Sentences
taowen login with password 123. he send a message hello to qq. qq should receive message hello.
Clause <-> Delegate
c# 代碼
- [Scriptable]
- public void action_repeat_count_times(Clause action, int count)
- {
- while (count-- > 0)
- {
- action();
- }
- }
浙公網安備 33010602011771號