最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

2013年09月的内容

【已解决】antlr中尝试出错就退出,结果编译parser出错:error: recoverFromMismatchedSet(IntStream,RecognitionException,BitSet) in xxxParser cannot override recoverFromMismatchedSet(IntStream,RecognitionException,BitSet) in BaseRecognizer,return type void is not compatible with Object
ANTLR

【已解决】antlr中尝试出错就退出,结果编译parser出错:error: recoverFromMismatchedSet(IntStream,RecognitionException,BitSet) in xxxParser cannot override recoverFromMismatchedSet(IntStream,RecognitionException,BitSet) in BaseRecognizer,return type void is not compatible with Object

crifan 12年前 (2013-09-22) 3613浏览

【问题】 折腾antlr的异常恢复。 参考: The Definitive ANTLR Reference.pdf 中,添加上对应的代码: @members { protected void mismatch(IntStream input,...

【记录】go语言中实现http的POST且传递对应的post data
GO

【记录】go语言中实现http的POST且传递对应的post data

crifan 12年前 (2013-09-21) 9529浏览

【背景】 折腾: 【记录】用go语言实现模拟登陆百度 期间,需要去发送POST操作,去模拟登陆百度,且post时要传递对应的post数据。 【折腾过程】 1.自己参考官网: http://golang.org/pkg/net/http/ 去看看,PO...

【已解决】go语言中获得控制台输入的字符串
GO

【已解决】go语言中获得控制台输入的字符串

crifan 12年前 (2013-09-21) 8523浏览

【背景】 折腾: 【记录】用go语言实现模拟登陆百度 期间,需要去获得输入的百度的用户名和密码,所以需要去搞懂: go语言中,如何获得console,此处是windows的cmd的输入。 【折腾过程】 1.参考: Golang function si...

【已解决】go语言中的字典类型变量:map
GO

【已解决】go语言中的字典类型变量:map

crifan 12年前 (2013-09-21) 3605浏览

【背景】 折腾: 【记录】用go语言实现模拟登陆百度 期间,需要去实现go语言中的字典类型的变量,以便去存放对应的http的post data。 【折腾过程】 1.之前是学习了: https://gobyexample.com/ 中的: https:...

【整理】go语言的学习参考资料
GO

【整理】go语言的学习参考资料

crifan 12年前 (2013-09-21) 2935浏览

此处整理一些,go语言的API文档,学习资料,参考资料,有价值的资料等等。   go语言学习资料   Go by Example 英文的。 网址:https://gobyexample.com/ 通过例子,一点点学习。 教程写的言...

63 queries in 0.154 seconds, using 19.07MB memory