Hi!
> On 5 Jan 2022, at 13:26, Alexander Steen <
alx....@gmail.com> wrote:
>
> Hi Michael,
>
> Leo-III actually accepts comments between any tokens (I have never seriously tested the extent of it, but it should allow pretty much everything in this regard).
> For example, the following input is perfectly fine for Leo-III:
>
> /* comment */
> thf(a_type, type /* hello */, a: /* should I choose $i? */ $i) /* even here */. /* EOL */
> /* comment */
> thf(/* pick a better name soon*/ c, conjecture, /* yeaha */ a = /* take this, geoff! */ a). /* EOL */
> /* comment */
>
> Currently, this works because the lexer/tokenizer already throws away every comment input before the actual parsing. I guess it becomes uglier if you want to be able to process/parse the comments themselves.
E also allows comments anywhere. Essentially, the lexer treats comments like
white space. If I want to process the comments, the lexer has an option to
either pass them through or, more usefully, to accumulate them. The collected
comments can then be attached to the parse tree at the TPTP input level.
>
> I don't see any downsides in restricting the comments as you proposed; I've never seen this flexibility used anywhere.
I find the flexibility useful, in particular to stick illuminating
comments at the end of the line. But it’s no big deal to me.
Bye,
Stephan
> Best, Alex
>
> PS. Happy new year to all!
Indeed! ;-)
> --
> You received this message because you are subscribed to the Google Groups "TPTP World" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
tptp-world+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/tptp-world/1ece7396-7578-472b-a16a-3c2ffea3b70an%40googlegroups.com.
--
------------------------------ It can be done! ---------------------------------
Please email me as
sch...@eprover.org (Stephan Schulz)
--------------------------------------------------------------------------------