X
49 | add x
50 | sub x
51 | mul x
52 | div x
53 | or x
54 | and x
55 | lsh x
56 | rsh x
57 | mod x
58 | xor x
59 |
60 | # !A
61 | neg
62 |
63 | # Jumps
64 | ja end
65 | jeq #42,prev,end
66 | jne #42,end
67 | jlt #42,end
68 | jle #42,end
69 | jgt #42,prev,end
70 | jge #42,prev,end
71 | jset #42,prev,end
72 |
73 | # Register transfers
74 | tax
75 | txa
76 |
77 | # Returns
78 | prev: ret a
79 | end: ret #42
80 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/codereview.cfg:
--------------------------------------------------------------------------------
1 | issuerepo: golang/go
2 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/context/withtimeout_test.go:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package context_test
6 |
7 | import (
8 | "fmt"
9 | "time"
10 |
11 | "golang.org/x/net/context"
12 | )
13 |
14 | func ExampleWithTimeout() {
15 | // Pass a context with a timeout to tell a blocking function that it
16 | // should abandon its work after the timeout elapses.
17 | ctx, _ := context.WithTimeout(context.Background(), 100*time.Millisecond)
18 | select {
19 | case <-time.After(200 * time.Millisecond):
20 | fmt.Println("overslept")
21 | case <-ctx.Done():
22 | fmt.Println(ctx.Err()) // prints "context deadline exceeded"
23 | }
24 | // Output:
25 | // context deadline exceeded
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/html/charset/testdata/README:
--------------------------------------------------------------------------------
1 | These test cases come from
2 | http://www.w3.org/International/tests/repository/html5/the-input-byte-stream/results-basics
3 |
4 | Distributed under both the W3C Test Suite License
5 | (http://www.w3.org/Consortium/Legal/2008/04-testsuite-license)
6 | and the W3C 3-clause BSD License
7 | (http://www.w3.org/Consortium/Legal/2008/03-bsd-license).
8 | To contribute to a W3C Test Suite, see the policies and contribution
9 | forms (http://www.w3.org/2004/10/27-testcases).
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phayes/deadci/ee00075c53a25a362c0d541369de03519ca5b0b1/vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phayes/deadci/ee00075c53a25a362c0d541369de03519ca5b0b1/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/html/entity_test.go:
--------------------------------------------------------------------------------
1 | // Copyright 2010 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package html
6 |
7 | import (
8 | "testing"
9 | "unicode/utf8"
10 | )
11 |
12 | func TestEntityLength(t *testing.T) {
13 | // We verify that the length of UTF-8 encoding of each value is <= 1 + len(key).
14 | // The +1 comes from the leading "&". This property implies that the length of
15 | // unescaped text is <= the length of escaped text.
16 | for k, v := range entity {
17 | if 1+len(k) < utf8.RuneLen(v) {
18 | t.Error("escaped entity &" + k + " is shorter than its UTF-8 encoding " + string(v))
19 | }
20 | if len(k) > longestEntityWithoutSemicolon && k[len(k)-1] != ';' {
21 | t.Errorf("entity name %s is %d characters, but longestEntityWithoutSemicolon=%d", k, len(k), longestEntityWithoutSemicolon)
22 | }
23 | }
24 | for k, v := range entity2 {
25 | if 1+len(k) < utf8.RuneLen(v[0])+utf8.RuneLen(v[1]) {
26 | t.Error("escaped entity &" + k + " is shorter than its UTF-8 encoding " + string(v[0]) + string(v[1]))
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/html/example_test.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // This example demonstrates parsing HTML data and walking the resulting tree.
6 | package html_test
7 |
8 | import (
9 | "fmt"
10 | "log"
11 | "strings"
12 |
13 | "golang.org/x/net/html"
14 | )
15 |
16 | func ExampleParse() {
17 | s := `Links:
`
18 | doc, err := html.Parse(strings.NewReader(s))
19 | if err != nil {
20 | log.Fatal(err)
21 | }
22 | var f func(*html.Node)
23 | f = func(n *html.Node) {
24 | if n.Type == html.ElementNode && n.Data == "a" {
25 | for _, a := range n.Attr {
26 | if a.Key == "href" {
27 | fmt.Println(a.Val)
28 | break
29 | }
30 | }
31 | }
32 | for c := n.FirstChild; c != nil; c = c.NextSibling {
33 | f(c)
34 | }
35 | }
36 | f(doc)
37 | // Output:
38 | // foo
39 | // /bar/baz
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/html/testdata/webkit/README:
--------------------------------------------------------------------------------
1 | The *.dat files in this directory are copied from The WebKit Open Source
2 | Project, specifically $WEBKITROOT/LayoutTests/html5lib/resources.
3 | WebKit is licensed under a BSD style license.
4 | http://webkit.org/coding/bsd-license.html says:
5 |
6 | Copyright (C) 2009 Apple Inc. All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are met:
10 |
11 | 1. Redistributions of source code must retain the above copyright notice,
12 | this list of conditions and the following disclaimer.
13 |
14 | 2. Redistributions in binary form must reproduce the above copyright notice,
15 | this list of conditions and the following disclaimer in the documentation
16 | and/or other materials provided with the distribution.
17 |
18 | THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND ANY
19 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 |
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/html/testdata/webkit/adoption02.dat:
--------------------------------------------------------------------------------
1 | #data
2 | 1234
3 | #errors
4 | #document
5 | |
6 | |
7 | |
8 | |
9 | | "1"
10 | |
11 | | "2"
12 | |
13 | |
14 | |
15 | | "3"
16 | | "4"
17 |
18 | #data
19 |