bugGNU source-highlight - Bugs: bug #42994, Consider supporting s-expression...

 
 

bug #42994: Consider supporting s-expression output format

Submitter:  Dario Teixeira <darioteixeira>
Submitted:  Fri 15 Aug 2014 08:53:35 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bettini
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 27 Mar 2015 06:23:35 PM UTC, comment #1: 

It's in the git repo.

Thanks for the contribution, and sorry for the delay :)

Lorenzo Bettini <bettini>
Group administrator
Fri 15 Aug 2014 08:53:35 AM UTC, original submission:  

S-expressions (popularised by Lisp et al) are a concise notation that is trivial and very fast to parse.  Camlhighlight, for instance, defines an S-expression outlang to parse the output of GNU Source-highlight.

I think this S-expression outlang has many potential uses beyond Camlhighlight, and as such, it should be included by default with GNU Source-highlight.  Moreover, it has the added advantage of being really tiny:


onestyle "($style \"$text\")"

translations
"\\"    "\\\\"
"\""    "\\\""
end


(Note that the translations section is required for proper escaping of backslashes and double-quotes.)

Dario Teixeira <darioteixeira>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bettini (Posted a comment)
  • -email is unavailable- added by darioteixeira (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-27 bettini StatusNone Fixed
        Assigned toNone bettini
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code