Re: [eclipse-clp-users] How to get comments inside of a clause?

From: Joachim Schimpf <jschimpf_at_...311...>
Date: Sat, 7 Oct 2017 01:08:04 +0100
On 06/10/17 14:51, Arthur Wang wrote:
> Hi there,
> 
> In code formatting of  VSC-Prolog, I can handle comments between clauses but 
> it's buggy to keep comments inside of a clause. I use regex in node.js to find 
> comments inside of a clause because I have not found any predicates to get 
> information about inside comments. The problem of regex is that it's hardly 
> possible to distinguish '%' in printf with that '%' of line comment.

In principle, regular expressions should be able to tell what is inside and what 
is outside of a string.


 > Are there any mechanisms to get inside comments in ECLiPSe like SWI-Prolog?

No, there is no support for reading such comments.


-- Joachim
Received on Sat Oct 07 2017 - 00:08:19 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:21 CEST