使用 fslex.exe 和 fsyacc.exe
在这一节,我们将学习如何使用fslex.exe 和 fsyacc.exe 两个工具,它是由 F# 提供的,用来为 F# 语言创建解析器。
注意
fslex.exe 和 fsyacc.exe 是以 ocamllex.exe和 ocamlyacc.exe 为基础的,它们是随 O'Caml 发布的工具。
正如前一章所讨论的,创...
分类:
其他好文 时间:
2014-06-19 09:38:59
阅读次数:
201
if (_type == "js") {//js预编译 var _script = "_define(function(exports,module){\n"; _script += "var $parent = \""...
分类:
其他好文 时间:
2014-06-15 23:52:57
阅读次数:
310
●boost锁的概述boost库中提供了mutex类与lock类,通过组合可以轻易的构建读写锁与互斥锁。▲mutex对象类mutex类主要有两种:boost::mutex,boost::shared_mutex,其中mutex有lock和unlock方法,shared_mutex除了提供lock和u...
分类:
其他好文 时间:
2014-06-15 23:47:04
阅读次数:
312
在HTML5中,页面打开后,需要指定的控件自动获得焦点很简单,只需要一个属性就可以实现 - autofocus。示例如下:
分类:
Web程序 时间:
2014-06-15 23:31:35
阅读次数:
225
DAY 199 Fri.最近心不静,听听琵琶安神。春江花月夜
分类:
其他好文 时间:
2014-06-15 23:13:01
阅读次数:
180
type="text/javascript"和language="javascript"都是指所使用的语言程序是javascript,本质上是一样的,在里都可以支持,不过现在language="javascript"的写法已经过时了,在最新的css3里面已经不推荐使用language="javasc...
分类:
编程语言 时间:
2014-06-15 22:33:02
阅读次数:
178
1.01 对象//js中你最重要的就是对象//对象是名/值对的集合,或字符串到值得映射的集合var book={ name:"神雕侠侣", type:"武侠"};//通过“.”或者“[]”来访问对象属性alert(".访问:"+book.name+"\n[]访问:"+book["type"]);1....
分类:
其他好文 时间:
2014-06-15 21:42:15
阅读次数:
232
本页包含内容:
类型注解(Type Annotation)
类型标识符(Type Identifier)
元组类型(Tuple Type)
函数类型(Function Type)
数组类型(Array Type)
可选类型(Optional Type)
隐式解析可选类型(Implicitly Unwrapped Optional Type)
协议合成类型(Protocol Comp...
分类:
其他好文 时间:
2014-06-15 17:25:52
阅读次数:
287
// enter any type data to show Binary.c
// 输入任意类型数据转换成二进制
// version: 1.0
// date: 2014.6.12
// BUG提交: yinjunwithu@outlook.com
// 缺陷: 请勿使用vc 6.0编译 因为不支持long long及unsigned long long类型
// #define _CRT_...
分类:
编程语言 时间:
2014-06-15 09:44:48
阅读次数:
414
eclipse new server Cannot create a server using the selected type 网上有两种办法,其实原理一样第一种说法:还真的找到解决的方法了,如下:1.退出eclipse2.到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime3.把org.eclipse.wst.server.core.pre...
分类:
系统相关 时间:
2014-06-15 08:36:06
阅读次数:
216