Commit Graph

193 Commits

Author SHA1 Message Date
Michael McLoughlin
e7a6e2cb2a script: use -x in coverage script
Hope to get some insight into why CI builds are failing.
2019-01-06 20:28:46 -08:00
Michael McLoughlin
ea3d101f08 examples/sha1: use loops where possible 2019-01-06 20:26:04 -08:00
Michael McLoughlin
4f73a6ea72 doc: forgot to regenerate on last commit 2019-01-06 20:16:26 -08:00
Michael McLoughlin
304c7425d2 build: add attributes argument to TEXT
Brings the TEXT() function signature closer to how the directive works
in assembly.

Also update almost all examples to use NOSPLIT.

Closes #11
2019-01-06 20:04:51 -08:00
Michael McLoughlin
76db5bb03f ci: set GO111MODULE=on 2019-01-06 19:15:27 -08:00
Michael McLoughlin
80a1adc4bb meta: initialize go modules
Updates #21
2019-01-06 18:58:30 -08:00
Michael McLoughlin
ff7d8afefe doc,examples/sum: improve doc on sum example
Updates #13
2019-01-06 18:09:37 -08:00
Michael McLoughlin
efb45b6500 doc: link to sha1 directory
Updates #13
2019-01-06 17:34:07 -08:00
Michael McLoughlin
294a7ac89b doc: add sha1 example to README 2019-01-06 17:31:45 -08:00
Michael McLoughlin
022d24d186 doc: suggest pinning a version
Updates #9
2019-01-06 15:59:23 -08:00
Michael McLoughlin
49b1691ac0 doc: description of examples/ and tests/ 2019-01-06 14:25:05 -08:00
Michael McLoughlin
0f63e0906d ast: move "ast" types from root to ir sub-package
Closes #32
2019-01-06 14:21:10 -08:00
Michael McLoughlin
4a920c22b5 build: add missing doc comment (#34) 2019-01-06 13:53:57 -08:00
Michael McLoughlin
7d20ff4ced build: test LogError
Closes #34
2019-01-06 13:52:37 -08:00
Michael McLoughlin
07901bb91b build: return ErrorList type
Adds a very similar interface to go/scanner package for returning a list
of errors.

Updates #34
2019-01-06 13:32:09 -08:00
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