Skip to content

Remove parsing support for (; ... ;) comments. - #232

Closed
sunfishcode wants to merge 1 commit into
masterfrom
winking-comments
Closed

sunfishcode wants to merge 1 commit into
masterfrom
winking-comments

Conversation

@sunfishcode

Copy link
Copy Markdown
Member

Accompanying #228 removing the tests for (; ... ;) comments, this is a PR removing lexing support for them from the interpreter.

@binji

binji commented Feb 3, 2016

Copy link
Copy Markdown
Member

I actually found these to be pretty convenient, and use them for many tests in the sexpr-wasm repo as part of the test format. Seems like we should have some alternative for a block comment if these are removed.

@sunfishcode

Copy link
Copy Markdown
Member Author

I'm ok either way; I just want the spec and testsuite to remain in sync. If we keep this syntax, we should revert #228 or add new tests.

@binji

binji commented Feb 3, 2016

Copy link
Copy Markdown
Member

@JSStats @rossberg-chromium Is there a preferable sexpr block comment syntax?

@haxxpop

haxxpop commented Feb 3, 2016

Copy link
Copy Markdown
Contributor

How about ;- comment -; ? This is quite analogous to the C style (// and /* comment */), but, in sexpr, we use ;; and ;- comment -;

@ghost

ghost commented Feb 3, 2016

Copy link
Copy Markdown

Lisp uses a ; to start a comment, and it runs to the end of the line. Then it becomes a matter of personal preference what conventions you use after this. For example: ;;;; for large section comments, ;;; for function header comments, ;; for comments between statements in a line of their own, and ; to start line end comments.

@ghost

ghost commented Feb 4, 2016

Copy link
Copy Markdown

@binji I see how this is used in the sexp-wasm d8 tests. Common Lisp has #| ...|# for this but there seems little reason to use that here. If prefixing every comment line with ; is a burden then perhaps keep the block support. But could the use in the spec tests at least be confined to one file that tests this alone, just to help general s-exp parsers a little which could just skip the file. Not a big issue either way, it would just need some extra parsing support for a general s-exp parse.

@rossberg

rossberg commented Feb 4, 2016

Copy link
Copy Markdown
Member

I also find block comments pretty useful soemtimes, and wouldn't want to lose them. Agreed that there should be a test for them.

@rossberg

Copy link
Copy Markdown
Member

Closing. We now have explicit tests.

@rossberg rossberg closed this Feb 25, 2016
@jfbastien
jfbastien deleted the winking-comments branch February 25, 2016 00:38
ngzhian pushed a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
New floating-point rounding instructions:

- Round to nearest integer, ties to even: `f32x4.nearest`/`f64x2.nearest`
- Round to integer towards zero (truncate to integer): `f32x4.trunc`/`f64x2.trunc`
- Round to integer above (ceiling): `f32x4.ceil`/`f64x2.ceil`
- Round to integer below (floor): `f32x4.floor`/`f64x2.floor`
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
- Change 'We denote X = Y' to 'Let A be Y' (suggested in
  WebAssembly/exception-handling#180 (comment))
- Remove uses of 'we' pronouns (suggested in
  WebAssembly/exception-handling#180 (comment))
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.

4 participants