MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - lstlisting (latex) for merl generator
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

lstlisting (latex) for merl generator

 Post Reply Post Reply
Author
Message
Saivignesh View Drop Down
Contributor
Contributor


Joined: 01.May.2017
Location: Netherlands
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Saivignesh Quote  Post ReplyReply Direct Link To This Post Topic: lstlisting (latex) for merl generator
    Posted: 30.Jun.2017 at 09:45
Do you have the lstset for MERL generator? Smile
https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings


Back to Top
jpt View Drop Down
MetaCase
MetaCase
Avatar

Joined: 25.Mar.2008
Points: 188
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpt Quote  Post ReplyReply Direct Link To This Post Posted: 03.Jul.2017 at 08:31
To my knowledge such support is not added for MERL. You may, however, generate LaTeX with MERL in similar way as generators are available for RTF and HTML.

If you want to document generators externally for a report you may export them a) manually by opening the Generator Editor and choosing Generator | Write to File... exporting all generators of the Graph Type to selected directory or b) automatically by running document:into: with preferred parameters.

Edited by jpt - 03.Jul.2017 at 08:32
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 509
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post Posted: 03.Jul.2017 at 09:15
Hi Saivignesh,

Looks like it would be really easy for you to add  a lstlisting language definition for MERL:
  % list of keywords - MERL doesn't highlight these, so can probably leave empty
  morekeywords={
  },
  sensitive=false, % keywords are not case-sensitive
  morecomment=[s]{/*}{*/}, % s is for start and end delimiter
  morestring=[b]' % defines that strings are enclosed in single quotes
The only thing left would be to recognize types from the metamodel, for things starting with .<~#: and up to an unescaped space or other non-NAMECHAR. Looks like that might need keywordprefix and maybe alsoletter. The colours are simply 50% R, G or B.

Hope this helps, and do post the definition if you get anywhere!
Steve
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 10.16
Copyright ©2001-2013 Web Wiz Ltd.

This page was generated in 0.031 seconds.