Commit Graph

478 Commits

Author SHA1 Message Date
Michael McLoughlin
b6576feee6 internal/test: test Logger helper
Provides *log.Logger and io.Writer that will log to a test object.

See golang/go#22513
Helped with #34
2019-01-06 13:30:34 -08:00
Michael McLoughlin
602bb5197c build: unify Label function signatures
The Context.Label method and LABEL global function did not agree. Also
breaks the convention I'd like to set that capitalized functions must
agree with existing Go assembly syntax.

To help avoid a conflict with `avo.Label`, attributes were moved to
their own package.

Fixes #35
2019-01-05 18:18:49 -08:00
Michael McLoughlin
87ffa6823a examples: forgot to regenerate
Sync READMEs with example code.

Updates #31
2019-01-05 17:44:10 -08:00
Michael McLoughlin
1cdd4b912b examples: remove non-dot imports
Updates #31
2019-01-05 17:41:07 -08:00
Michael McLoughlin
5c67547d67 doc: add package-level doc comments (#9) 2019-01-05 17:23:56 -08:00
Michael McLoughlin
0989c0daea lint: disable comment exclusion in golangci-lint
Updates #9
2019-01-05 16:52:06 -08:00
Michael McLoughlin
7eb55c9ac5 build: doc external symbols (#9) 2019-01-05 16:49:59 -08:00
Michael McLoughlin
f4c5957820 internal/opcodes{csv/xml}: doc exported symbols (#9) 2019-01-05 14:41:37 -08:00
Michael McLoughlin
cf1739b920 internal/gen: doc exported symbols (#9) 2019-01-05 14:12:50 -08:00
Michael McLoughlin
c3a3000908 internal/load: doc exported symbols (#9) 2019-01-05 13:45:09 -08:00
Michael McLoughlin
9f1cb70aac internal/prnt: doc exported symbols (#9) 2019-01-05 11:53:35 -08:00
Michael McLoughlin
b0b4b88db4 avogen: package-level comment (#9) 2019-01-05 11:46:51 -08:00
Michael McLoughlin
f9a67bb2c0 internal/inst: doc exported symbols (#9) 2019-01-05 11:43:59 -08:00
Michael McLoughlin
d54d413e54 doc: fix broken links in README
Updates #13
2019-01-05 00:36:14 -08:00
Michael McLoughlin
24ca3eae08 .: doc exported symbols (#9) 2019-01-05 00:31:50 -08:00
Michael McLoughlin
c95744c872 build: some more doc comments (#9) 2019-01-05 00:11:13 -08:00
Michael McLoughlin
c48569a6b0 buildtags: doc exported symbols (#9) 2019-01-04 23:22:35 -08:00
Michael McLoughlin
dc571a47df reg: doc exported symbols (#9) 2019-01-04 22:06:00 -08:00
Michael McLoughlin
2e250a6f4c operand: doc for exported symbols (#9) 2019-01-04 21:38:23 -08:00
Michael McLoughlin
52a501c7be gotypes: doc exported symbols (#9) 2019-01-04 20:38:21 -08:00
Michael McLoughlin
69aeaf5cf7 src: package level doc (#9) 2019-01-04 20:03:17 -08:00
Michael McLoughlin
816cf06a08 pass: doc exported symbols (#9) 2019-01-04 20:00:22 -08:00
Michael McLoughlin
4cbe31e0bd src: doc for exported symbols (#9) 2019-01-04 19:39:17 -08:00
Michael McLoughlin
9d4cd16f88 printer: stop printer_test.go looking like generated code 2019-01-04 19:10:55 -08:00
Michael McLoughlin
88eff53893 printer: doc for exported symbols
Updates #9
2019-01-04 19:03:05 -08:00
Michael McLoughlin
cfce8d94df lint: explicitly configure golangci-lint excludes
Updates #9
2019-01-04 18:38:23 -08:00
Michael McLoughlin
672b77a441 reg,build: remove "v" from virtual register ctors
Fixes #30
2019-01-04 18:23:44 -08:00
Michael McLoughlin
05cfa809f2 build: include position information in errors
Updates #5
2019-01-04 15:01:29 -08:00
Michael McLoughlin
80c427d051 src: type for representing file:line positions
Updates #5
2019-01-04 10:57:50 -08:00
Michael McLoughlin
301d0c137a internal/stack: helper package for querying stack frames
Intended for #5. Also replaces a helper function in the `printer`
package.
2019-01-04 00:46:27 -08:00
Michael McLoughlin
52b6e2c03b doc: link to examples directory in README
Updates #13
2019-01-03 22:23:51 -08:00
Michael McLoughlin
fa7b5ed1dd doc: show more examples in README 2019-01-03 22:20:25 -08:00
Michael McLoughlin
91e048ff29 doc: add description to README
Updates #13
2019-01-03 22:02:02 -08:00
Michael McLoughlin
0594af978f doc: "Contributing" section in README
Updates #13
2019-01-03 20:49:03 -08:00
Michael McLoughlin
e0c1ed5776 doc: add quick start to README
Updates #13
2019-01-03 20:02:36 -08:00
Michael McLoughlin
ce1b0bb850 doc: move badges
Updates #13
2019-01-03 18:39:59 -08:00
Michael McLoughlin
a88262712f meta: adjust logo size
Updates #13
2019-01-03 00:46:06 -08:00
Michael McLoughlin
8a820aced1 meta: add logo
Update #13
2019-01-03 00:36:38 -08:00
Michael McLoughlin
36984c7031 printer: output build tags in stubs file
Updates #3
2019-01-02 22:01:38 -08:00
Michael McLoughlin
75224ed031 build: remove Build stutter from BuildConstraint*
Address golint failure.
2019-01-02 21:55:43 -08:00
Michael McLoughlin
6202c2c9aa ast,build: add build constraints to File
Updates #3
2019-01-02 21:35:17 -08:00
Michael McLoughlin
d92a147644 testing: coverage script
Updates #27
2019-01-02 20:41:59 -08:00
Michael McLoughlin
cf76c56dfc testing: script to measure coverage of a binary
Updates #27
2019-01-02 20:04:45 -08:00
Michael McLoughlin
d09e9ce5f9 buildtags: add Evaluate method
Updates #3
2019-01-02 00:10:55 -08:00
Michael McLoughlin
beeb9ed525 buildtags: package for build tag representation
Updates #3
2019-01-01 22:55:57 -08:00
Michael McLoughlin
0eb66fe6cc doc: READMEs for remaining "real world" examples
Updates #14
2019-01-01 17:01:08 -08:00
Michael McLoughlin
85a72997aa doc: README for data example
Updates #14
2019-01-01 16:33:30 -08:00
Michael McLoughlin
49c795704d doc: README for returns example
Updates #14
2019-01-01 16:15:33 -08:00
Michael McLoughlin
51931ee673 doc: README for sum example
Updates #14
2019-01-01 16:04:37 -08:00
Michael McLoughlin
8465c21c02 doc: README for complex example
Updates #14
2019-01-01 15:56:17 -08:00