Permalink
Browse files

Removed lang (preparing for sx-lang-master merge)

  • Loading branch information...
1 parent 1911dcf commit d81a90385ba37f92c02c0a884e8dbdfc02c70c3b @fd committed Feb 19, 2013
Showing with 0 additions and 62,870 deletions.
  1. +0 −993 lang/ast/ast.go
  2. +0 −32 lang/ast/ast_sx.go
  3. +0 −50 lang/ast/ast_test.go
  4. +0 −332 lang/ast/commentmap.go
  5. +0 −143 lang/ast/commentmap_test.go
  6. +0 −136 lang/ast/example_test.go
  7. +0 −447 lang/ast/filter.go
  8. +0 −49 lang/ast/filter_sx.go
  9. +0 −134 lang/ast/import.go
  10. +0 −251 lang/ast/print.go
  11. +0 −97 lang/ast/print_test.go
  12. +0 −367 lang/ast/replace.go
  13. +0 −174 lang/ast/resolve.go
  14. +0 −162 lang/ast/scope.go
  15. +0 −391 lang/ast/walk.go
  16. +0 −1,053 lang/build/build.go
  17. +0 −119 lang/build/build_test.go
  18. +0 −431 lang/build/deps_test.go
  19. +0 −120 lang/build/doc.go
  20. +0 −238 lang/build/read.go
  21. +0 −226 lang/build/read_test.go
  22. +0 −8 lang/build/syslist.go
  23. +0 −62 lang/build/syslist_test.go
  24. +0 −5 lang/build/testdata/other/file/file.go
  25. +0 −11 lang/build/testdata/other/main.go
  26. +0 −30 lang/cmd/sx/bootstrap.go
  27. +0 −1,930 lang/cmd/sx/build.go
  28. +0 −225 lang/cmd/sx/clean.go
  29. +0 −63 lang/cmd/sx/discovery.go
  30. +0 −797 lang/cmd/sx/doc.go
  31. +0 −91 lang/cmd/sx/env.go
  32. +0 −30 lang/cmd/sx/fix.go
  33. +0 −73 lang/cmd/sx/fmt.go
  34. +0 −400 lang/cmd/sx/get.go
  35. +0 −238 lang/cmd/sx/help.go
  36. +0 −87 lang/cmd/sx/http.go
  37. +0 −171 lang/cmd/sx/list.go
  38. +0 −568 lang/cmd/sx/main.go
  39. +0 −36 lang/cmd/sx/match_test.go
  40. +0 −8 lang/cmd/sx/mkdoc.sh
  41. +0 −737 lang/cmd/sx/pkg.go
  42. +0 −91 lang/cmd/sx/run.go
  43. +0 −23 lang/cmd/sx/script
  44. +0 −352 lang/cmd/sx/script.txt
  45. +0 −31 lang/cmd/sx/signal.go
  46. +0 −13 lang/cmd/sx/signal_notunix.go
  47. +0 −14 lang/cmd/sx/signal_unix.go
  48. +0 −100 lang/cmd/sx/tag_test.go
  49. +0 −193 lang/cmd/sx/test.bash
  50. +0 −859 lang/cmd/sx/test.go
  51. +0 −3 lang/cmd/sx/testdata/errmsg/x.go
  52. +0 −3 lang/cmd/sx/testdata/errmsg/x1_test.go
  53. +0 −3 lang/cmd/sx/testdata/errmsg/x_test.go
  54. +0 −7 lang/cmd/sx/testdata/local/easy.go
  55. +0 −7 lang/cmd/sx/testdata/local/easysub/easysub.go
  56. +0 −9 lang/cmd/sx/testdata/local/easysub/main.go
  57. +0 −7 lang/cmd/sx/testdata/local/hard.go
  58. +0 −12 lang/cmd/sx/testdata/local/sub/sub.go
  59. +0 −7 lang/cmd/sx/testdata/local/sub/sub/subsub.go
  60. +0 −5 lang/cmd/sx/testdata/src/go-cmd-test/helloworld.go
  61. +0 −3 lang/cmd/sx/testdata/testimport/p.go
  62. +0 −3 lang/cmd/sx/testdata/testimport/p1/p1.go
  63. +0 −3 lang/cmd/sx/testdata/testimport/p2/p2.go
  64. +0 −13 lang/cmd/sx/testdata/testimport/p_test.go
  65. +0 −15 lang/cmd/sx/testdata/testimport/x_test.go
  66. +0 −242 lang/cmd/sx/testflag.go
  67. +0 −135 lang/cmd/sx/tool.go
  68. +0 −678 lang/cmd/sx/vcs.go
  69. +0 −25 lang/cmd/sx/version.go
  70. +0 −37 lang/cmd/sx/vet.go
  71. +0 −52 lang/cmd/sxc/main.go
  72. +0 −61 lang/cmd/sxdoc/README.godoc-app
  73. +0 −69 lang/cmd/sxdoc/appinit.go
  74. +0 −494 lang/cmd/sxdoc/codewalk.go
  75. +0 −329 lang/cmd/sxdoc/dirtrees.go
  76. +0 −130 lang/cmd/sxdoc/doc.go
  77. +0 −564 lang/cmd/sxdoc/filesystem.go
  78. +0 −360 lang/cmd/sxdoc/format.go
  79. +0 −1,512 lang/cmd/sxdoc/godoc.go
  80. +0 −1,075 lang/cmd/sxdoc/index.go
  81. +0 −466 lang/cmd/sxdoc/main.go
  82. +0 −68 lang/cmd/sxdoc/parser.go
  83. +0 −35 lang/cmd/sxdoc/play-appengine.go
  84. +0 −41 lang/cmd/sxdoc/play-local.go
  85. +0 −52 lang/cmd/sxdoc/play.go
  86. +0 −140 lang/cmd/sxdoc/setup-godoc-app.bash
  87. +0 −112 lang/cmd/sxdoc/snippet.go
  88. +0 −179 lang/cmd/sxdoc/spec.go
  89. +0 −182 lang/cmd/sxdoc/template.go
  90. +0 −88 lang/cmd/sxdoc/throttle.go
  91. +0 −93 lang/cmd/sxdoc/utils.go
  92. +0 −236 lang/cmd/sxdoc/zip.go
  93. +0 −77 lang/cmd/sxfmt/doc.go
  94. +0 −361 lang/cmd/sxfmt/gofmt.go
  95. +0 −361 lang/cmd/sxfmt/gofmt.go.gofmt
  96. +0 −132 lang/cmd/sxfmt/gofmt_test.go
  97. +0 −132 lang/cmd/sxfmt/gofmt_test.go.gofmt
  98. +0 −159 lang/cmd/sxfmt/long_test.go
  99. +0 −295 lang/cmd/sxfmt/rewrite.go
  100. +0 −117 lang/cmd/sxfmt/simplify.go
  101. +0 −4 lang/cmd/sxfmt/testdata/.gitattributes
  102. +0 −9 lang/cmd/sxfmt/testdata/comments.golden
  103. +0 −9 lang/cmd/sxfmt/testdata/comments.input
  104. +0 −202 lang/cmd/sxfmt/testdata/composites.golden
  105. +0 −202 lang/cmd/sxfmt/testdata/composites.input
  106. +0 −12 lang/cmd/sxfmt/testdata/crlf.golden
  107. +0 −12 lang/cmd/sxfmt/testdata/crlf.input
  108. +0 −108 lang/cmd/sxfmt/testdata/import.golden
  109. +0 −108 lang/cmd/sxfmt/testdata/import.input
  110. +0 −9 lang/cmd/sxfmt/testdata/old.golden
  111. +0 −8 lang/cmd/sxfmt/testdata/old.input
  112. +0 −12 lang/cmd/sxfmt/testdata/rewrite1.golden
  113. +0 −12 lang/cmd/sxfmt/testdata/rewrite1.input
  114. +0 −10 lang/cmd/sxfmt/testdata/rewrite2.golden
  115. +0 −10 lang/cmd/sxfmt/testdata/rewrite2.input
  116. +0 −12 lang/cmd/sxfmt/testdata/rewrite3.golden
  117. +0 −12 lang/cmd/sxfmt/testdata/rewrite3.input
  118. +0 −74 lang/cmd/sxfmt/testdata/rewrite4.golden
  119. +0 −74 lang/cmd/sxfmt/testdata/rewrite4.input
  120. +0 −15 lang/cmd/sxfmt/testdata/rewrite5.golden
  121. +0 −15 lang/cmd/sxfmt/testdata/rewrite5.input
  122. +0 −58 lang/cmd/sxfmt/testdata/slices1.golden
  123. +0 −58 lang/cmd/sxfmt/testdata/slices1.input
  124. +0 −61 lang/cmd/sxfmt/testdata/slices2.golden
  125. +0 −61 lang/cmd/sxfmt/testdata/slices2.input
  126. +0 −3 lang/cmd/sxfmt/testdata/stdin1.golden
  127. +0 −3 lang/cmd/sxfmt/testdata/stdin1.golden.gofmt
  128. +0 −3 lang/cmd/sxfmt/testdata/stdin1.input
  129. +0 −3 lang/cmd/sxfmt/testdata/stdin1.input.gofmt
  130. +0 −11 lang/cmd/sxfmt/testdata/stdin2.golden
  131. +0 −10 lang/cmd/sxfmt/testdata/stdin2.golden.gofmt
  132. +0 −11 lang/cmd/sxfmt/testdata/stdin2.input
  133. +0 −11 lang/cmd/sxfmt/testdata/stdin2.input.gofmt
  134. +0 −6 lang/cmd/sxfmt/testdata/stdin3.golden
  135. +0 −7 lang/cmd/sxfmt/testdata/stdin3.golden.gofmt
  136. +0 −4 lang/cmd/sxfmt/testdata/stdin3.input
  137. +0 −7 lang/cmd/sxfmt/testdata/stdin3.input.gofmt
  138. +0 −3 lang/cmd/sxfmt/testdata/stdin4.golden
  139. +0 −3 lang/cmd/sxfmt/testdata/stdin4.golden.gofmt
  140. +0 −3 lang/cmd/sxfmt/testdata/stdin4.input
  141. +0 −3 lang/cmd/sxfmt/testdata/stdin4.input.gofmt
  142. +0 −60 lang/cmd/sxfmt/testdata/typeswitch.golden
  143. +0 −60 lang/cmd/sxfmt/testdata/typeswitch.input
  144. +0 −54 lang/compiler/context.go
  145. +0 −832 lang/compiler/converter.go
  146. +0 −60 lang/compiler/hasher.go
  147. +0 −30 lang/compiler/parser.go
  148. +0 −320 lang/compiler/printer.go
  149. +0 −108 lang/compiler/type_checker.go
  150. +0 −465 lang/compiler/type_printer.go
  151. +0 −12 lang/compiler/types.go
  152. +0 −7 lang/doc/Makefile
  153. +0 −442 lang/doc/comment.go
  154. +0 −109 lang/doc/comment_test.go
  155. +0 −97 lang/doc/doc.go
  156. +0 −136 lang/doc/doc_test.go
  157. +0 −332 lang/doc/example.go
  158. +0 −111 lang/doc/example_test.go
  159. +0 −199 lang/doc/exports.go
  160. +0 −105 lang/doc/filter.go
  161. +0 −113 lang/doc/headscan.go
  162. +0 −802 lang/doc/reader.go
  163. +0 −73 lang/doc/synopsis.go
  164. +0 −49 lang/doc/synopsis_test.go
  165. +0 −13 lang/doc/testdata/a.0.golden
  166. +0 −13 lang/doc/testdata/a.1.golden
  167. +0 −13 lang/doc/testdata/a.2.golden
  168. +0 −8 lang/doc/testdata/a0.go
  169. +0 −8 lang/doc/testdata/a1.go
  170. +0 −71 lang/doc/testdata/b.0.golden
  171. +0 −83 lang/doc/testdata/b.1.golden
  172. +0 −71 lang/doc/testdata/b.2.golden
  173. +0 −58 lang/doc/testdata/b.go
  174. +0 −293 lang/doc/testdata/benchmark.go
  175. +0 −48 lang/doc/testdata/c.0.golden
  176. +0 −48 lang/doc/testdata/c.1.golden
  177. +0 −48 lang/doc/testdata/c.2.golden
  178. +0 −62 lang/doc/testdata/c.go
  179. +0 −104 lang/doc/testdata/d.0.golden
  180. +0 −104 lang/doc/testdata/d.1.golden
  181. +0 −104 lang/doc/testdata/d.2.golden
  182. +0 −57 lang/doc/testdata/d1.go
  183. +0 −45 lang/doc/testdata/d2.go
  184. +0 −109 lang/doc/testdata/e.0.golden
  185. +0 −144 lang/doc/testdata/e.1.golden
  186. +0 −130 lang/doc/testdata/e.2.golden
  187. +0 −147 lang/doc/testdata/e.go
  188. +0 −30 lang/doc/testdata/error1.0.golden
  189. +0 −32 lang/doc/testdata/error1.1.golden
  190. +0 −30 lang/doc/testdata/error1.2.golden
  191. +0 −24 lang/doc/testdata/error1.go
  192. +0 −27 lang/doc/testdata/error2.0.golden
  193. +0 −37 lang/doc/testdata/error2.1.golden
  194. +0 −27 lang/doc/testdata/error2.2.golden
  195. +0 −29 lang/doc/testdata/error2.go
  196. +0 −81 lang/doc/testdata/example.go
  197. +0 −13 lang/doc/testdata/f.0.golden
  198. +0 −16 lang/doc/testdata/f.1.golden
  199. +0 −13 lang/doc/testdata/f.2.golden
  200. +0 −14 lang/doc/testdata/f.go
  201. +0 −65 lang/doc/testdata/template.txt
  202. +0 −156 lang/doc/testdata/testing.0.golden
  203. +0 −298 lang/doc/testdata/testing.1.golden
  204. +0 −156 lang/doc/testdata/testing.2.golden
  205. +0 −404 lang/doc/testdata/testing.go
  206. +0 −200 lang/format/format.go
  207. +0 −126 lang/format/format_test.go
  208. +0 −166 lang/parser/error_test.go
  209. +0 −34 lang/parser/example_test.go
  210. +0 −174 lang/parser/interface.go
  211. +0 −2,398 lang/parser/parser.go
  212. +0 −173 lang/parser/parser_sx.go
  213. +0 −411 lang/parser/parser_test.go
  214. +0 −30 lang/parser/performance_test.go
  215. +0 −80 lang/parser/short_test.go
  216. +0 −19 lang/parser/testdata/commas.src
  217. +0 −46 lang/parser/testdata/issue3106.src
  218. +0 −67 lang/printer/example_test.go
  219. +0 −1,591 lang/printer/nodes.go
  220. +0 −58 lang/printer/performance_test.go
  221. +0 −1,262 lang/printer/printer.go
  222. +0 −569 lang/printer/printer_test.go
  223. +0 −638 lang/printer/testdata/comments.golden
  224. +0 −642 lang/printer/testdata/comments.input
  225. +0 −56 lang/printer/testdata/comments.x
  226. +0 −79 lang/printer/testdata/comments2.golden
  227. +0 −79 lang/printer/testdata/comments2.input
  228. +0 −914 lang/printer/testdata/declarations.golden
  229. +0 −923 lang/printer/testdata/declarations.input
  230. +0 −5 lang/printer/testdata/empty.golden
  231. +0 −5 lang/printer/testdata/empty.input
  232. +0 −664 lang/printer/testdata/expressions.golden
  233. +0 −693 lang/printer/testdata/expressions.input
  234. +0 −664 lang/printer/testdata/expressions.raw
  235. +0 −275 lang/printer/testdata/linebreaks.golden
  236. +0 −271 lang/printer/testdata/linebreaks.input
  237. +0 −2,153 lang/printer/testdata/parser.go
  238. +0 −85 lang/printer/testdata/slow.golden
  239. +0 −85 lang/printer/testdata/slow.input
  240. +0 −635 lang/printer/testdata/statements.golden
  241. +0 −550 lang/printer/testdata/statements.input
  242. +0 −126 lang/scanner/errors.go
  243. +0 −46 lang/scanner/example_test.go
  244. +0 −727 lang/scanner/scanner.go
  245. +0 −755 lang/scanner/scanner_test.go
  246. +0 −437 lang/token/position.go
  247. +0 −232 lang/token/position_test.go
  248. +0 −56 lang/token/serialize.go
  249. +0 −111 lang/token/serialize_test.go
  250. +0 −312 lang/token/token.go
  251. +0 −225 lang/token/token_sx.go
  252. +0 −96 lang/types/api.go
  253. +0 −459 lang/types/builtins.go
  254. +0 −386 lang/types/builtins_sx.go
  255. +0 −454 lang/types/check.go
  256. +0 −261 lang/types/check_test.go
  257. +0 −734 lang/types/const.go
  258. +0 −41 lang/types/conversions.go
  259. +0 −320 lang/types/errors.go
  260. +0 −113 lang/types/errors_sx.go
  261. +0 −111 lang/types/exportdata.go
  262. +0 −1,336 lang/types/expr.go
  263. +0 −981 lang/types/expr_sx.go
  264. +0 −908 lang/types/gcimporter.go
  265. +0 −181 lang/types/gcimporter_test.go
  266. +0 −155 lang/types/objects.go
  267. +0 −397 lang/types/operand.go
  268. +0 −213 lang/types/operand_sx.go
  269. +0 −307 lang/types/predicates.go
  270. +0 −130 lang/types/predicates_sx.go
  271. +0 −177 lang/types/resolve.go
  272. +0 −167 lang/types/resolver_test.go
  273. +0 −59 lang/types/scope.go
  274. +0 −721 lang/types/stmt.go
  275. +0 −302 lang/types/testdata/builtins.src
  276. +0 −27 lang/types/testdata/builtins_sx.src
  277. +0 −215 lang/types/testdata/const0.src
  278. +0 −18 lang/types/testdata/conversions.src
  279. +0 −36 lang/types/testdata/conversions_sx.src
  280. +0 −177 lang/types/testdata/decls0.src
  281. +0 −132 lang/types/testdata/decls1.src
  282. +0 −67 lang/types/testdata/decls2a.src
  283. +0 −28 lang/types/testdata/decls2b.src
  284. +0 −231 lang/types/testdata/decls3.src
  285. +0 −89 lang/types/testdata/exports.go
  286. +0 −151 lang/types/testdata/expr0.src
  287. +0 −156 lang/types/testdata/expr0_sx.src
  288. +0 −7 lang/types/testdata/expr1.src
  289. +0 −23 lang/types/testdata/expr2.src
  290. +0 −367 lang/types/testdata/expr3.src
  291. +0 −274 lang/types/testdata/stmt0.src
  292. +0 −231 lang/types/types.go
  293. +0 −25 lang/types/types_sx.go
  294. +0 −175 lang/types/types_test.go
  295. +0 −138 lang/types/universe.go
View
Oops, something went wrong.
View
@@ -1,32 +0,0 @@
-package ast
-
-import (
- "simplex.sh/lang/token"
-)
-
-type (
-
- // A ViewType node represents a view type.
- ViewType struct {
- View token.Pos // position of "view" keyword
- Key Expr // primary key type or nil
- Value Expr
- }
-
- // A TableType node represents a table type.
- TableType struct {
- Table token.Pos // position of "table" keyword
- Key Expr // primary key type
- Value Expr
- }
-
- StepType int
-)
-
-func (x *ViewType) Pos() token.Pos { return x.View }
-func (x *ViewType) End() token.Pos { return x.Value.End() }
-func (*ViewType) exprNode() {}
-
-func (x *TableType) Pos() token.Pos { return x.Table }
-func (x *TableType) End() token.Pos { return x.Value.End() }
-func (*TableType) exprNode() {}
View
@@ -1,50 +0,0 @@
-// Copyright 2012 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package ast
-
-import (
- "testing"
-)
-
-var comments = []struct {
- list []string
- text string
-}{
- {[]string{"//"}, ""},
- {[]string{"// "}, ""},
- {[]string{"//", "//", "// "}, ""},
- {[]string{"// foo "}, "foo\n"},
- {[]string{"//", "//", "// foo"}, "foo\n"},
- {[]string{"// foo bar "}, "foo bar\n"},
- {[]string{"// foo", "// bar"}, "foo\nbar\n"},
- {[]string{"// foo", "//", "//", "//", "// bar"}, "foo\n\nbar\n"},
- {[]string{"// foo", "/* bar */"}, "foo\n bar\n"},
- {[]string{"//", "//", "//", "// foo", "//", "//", "//"}, "foo\n"},
-
- {[]string{"/**/"}, ""},
- {[]string{"/* */"}, ""},
- {[]string{"/**/", "/**/", "/* */"}, ""},
- {[]string{"/* Foo */"}, " Foo\n"},
- {[]string{"/* Foo Bar */"}, " Foo Bar\n"},
- {[]string{"/* Foo*/", "/* Bar*/"}, " Foo\n Bar\n"},
- {[]string{"/* Foo*/", "/**/", "/**/", "/**/", "// Bar"}, " Foo\n\nBar\n"},
- {[]string{"/* Foo*/", "/*\n*/", "//", "/*\n*/", "// Bar"}, " Foo\n\nBar\n"},
- {[]string{"/* Foo*/", "// Bar"}, " Foo\nBar\n"},
- {[]string{"/* Foo\n Bar*/"}, " Foo\n Bar\n"},
-}
-
-func TestCommentText(t *testing.T) {
- for i, c := range comments {
- list := make([]*Comment, len(c.list))
- for i, s := range c.list {
- list[i] = &Comment{Text: s}
- }
-
- text := (&CommentGroup{list}).Text()
- if text != c.text {
- t.Errorf("case %d: got %q; expected %q", i, text, c.text)
- }
- }
-}
Oops, something went wrong.

0 comments on commit d81a903

Please sign in to comment.