Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addresses some IDE warnings relating to GoDoc comments #76

Merged
merged 3 commits into from
Nov 24, 2021

Conversation

codefromthecrypt
Copy link
Contributor

This addresses some warnings mostly around the convention of the first
word of a godoc being the same as the exported symbol. This also
addresses some typos and some micronits. Any or all of this can be
dismissed if not welcome. I'm just raising this as noticed while
reviewing the code!

This addresses some warnings mostly around the convention of the first
word of a godoc being the same as the exported symbol. This also
addresses some typos and some micronits. Any or all of this can be
dismissed if not welcome. I'm just raising this as noticed while
reviewing the code!

Signed-off-by: Adrian Cole <adrian@tetrate.io>
// resolved variable index used by the interpreter; Name is the
// original name used by String().
// VarExpr is a variable reference (special var, global, or local).
// Index is the resolved variable index used by the interpreter; Name
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked and figure based on common lengths that we are using max 70 columns here.

@@ -232,7 +234,7 @@ func (e *AugAssignExpr) String() string {
return e.Left.String() + " " + e.Op.String() + "= " + e.Right.String()
}

// Increment or decrement expression like x++ or --y.
// IncrExpr is an increment or decrement expression like x++ or --y.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a lot of judgment calls to avoid stuttering where possible, but sometimes it wasn't.

@@ -12,6 +12,7 @@ const (
CONCAT // Not really a token, but used as an operator

// Symbols

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this extra line prevents the section comment from being mistaken as documentation for ADD

Adrian Cole and others added 2 commits November 24, 2021 13:49
Signed-off-by: Adrian Cole <adrian@tetrate.io>
@benhoyt
Copy link
Owner

benhoyt commented Nov 24, 2021

Thanks! I pushed one more tweak, namely changing "etc." to "and so on", as I think it reads better anyway. I'll merge this now.

@benhoyt
Copy link
Owner

benhoyt commented Nov 24, 2021

Out of interest, are you using GoAWK for any project in particular, or did you just stumble across it?

@benhoyt benhoyt merged commit bb595f1 into benhoyt:master Nov 24, 2021
@codefromthecrypt codefromthecrypt deleted the godoc-nits branch November 24, 2021 23:55
@codefromthecrypt
Copy link
Contributor Author

Thanks for merging!

Out of interest, are you using GoAWK for any project in particular, or did you just stumble across it?

I'm studying your work because we are thinking about a parser for WebAssembly's text format, which has some interesting twists and turns in it. I also have been looking at mugo for the same reason. Being able to parse wat allows some interesting use cases including helping those learn about WebAssembly and also making conversion easier to use (ex go run X vs installing a compiled system package) tetratelabs/wabin#1

@benhoyt
Copy link
Owner

benhoyt commented Nov 25, 2021

Nice, thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants