Re: [NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Ruben Faelens
Hi Devin, Partly agree. Yes, we should think about the intended use. For me, the primary use would be to automatically import an NM-Tran file into Simulo. But of course, having a proper modern editor for NM-TRAN code would be a huge added bonus. *Regarding your concerns:* 1) Parsing fortran is

Re: [NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Devin Pastoor
Hi all, A couple thoughts on this. First, I would suggest constructing a parse tree over an abstract syntax tree, as it will likely be important to retain additional metadata such as comments, as I presume such a tool would provide a foundation for automatic things such as refactoring,

[NMusers] Clinical Trial Graphics in ggplot2 & Clinical Trial Simulations in R public training course Boston MA & R for PK public course London UK -Mango Solutions

2018-06-14 Thread Christina Halliday
Hi Everyone Mango Solutions will be hosting: A two day Pharma focused training course in Boston MA on the 14th & 15th November. This will follow on from our Boston Enterprise Applications of the R Language (EARL) conference www.earl-conference.com The course

Re: [NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Ruben Faelens
Hi Bill, Nice to see you're interested. I have something basic working in XText, that can already create an AST and editor for an example nonmem file. However, it suffers from the context-free aspect of the lexer, and therefore errors out in some cases... See

RE: [NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Nick Holford
Hi Ruben, I wrote an empirical translator to convert NM-TRAN to the DDMoRe MDL. http://nmtran-to-mdl.mango-solutions.com/ It was written in awk. As far a I know there were no formal parser/lexers used with NM-TRAN as part of DDMoRe. Best wishes, Nick I assume building a parser for NM-TRAN was

RE: [NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Bill Denney
Hi Ruben, I’m also interested in a lexer-parser for NONMEM. The regexp-based ones that I’ve used have typically had issues (I’ve tried about 4 different ones including one that I wrote), and they are working for many but not all models. I’m unaware of a reasonably complete lexer-parser for

Re: [NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Ruben Faelens
Hi Tim, Thanks for pointing to that. Unfortunately, nonmemica uses regular expressions to simply split the character stream into subsections. This is not the way to go. As an example, nonmemica would get confused by the following input: $PROBLEM This is a problem with special $PK section

RE: [NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Tim Bergsma
Hi Ruben. Related: the CRAN package “nonmemica” has a function as.model() that parses NONMEM control streams. Type “?nonmemica” at the R prompt after loading. See also https://github.com/MikeKSmith/rspeaksnonmem . Happy to discuss further. Kind regards, Tim Tim Bergsma, PhD Associate

[NMusers] One year Fixed Term position at Merck Institute for Pharmacometrics in Lausanne (CH)

2018-06-14 Thread Orestis Papasouliotis
Randstad is seeking for Merck Serono one creative, motivated Pharmacometrician to join Merck Institute for Pharmacometrics in Lausanne at EPFL for a one-year fixed term contract starting next July 2018, under supervision of Pascal Girard. Your role: The Pharmacometrician will support model

[NMusers] Context-free lexer for NM-TRAN

2018-06-14 Thread Ruben Faelens
Hi all, Calling all computer scientists and computer language experts. In my spare time, I am working on a lexer and parser for NM-Tran. Primarly to teach myself about grammars and DSL, but perhaps something useful will come out of this (e.g. a context-sensitive editor with code completion).