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

2018-06-14 Thread Ruben Faelens
-building, and I’ve been looking into ANTLR as well. >>> Three questions: Are you interested in collaborating on the parser (can >>> you create a GitHub project for it)? Why ANTLRv3 instead of v4? Do you >>> have a way to get an ANTLR parse tree into R? >>> >&

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

2018-06-14 Thread Devin Pastoor
GitHub project for it)? Why ANTLRv3 instead of v4? Do you >> have a way to get an ANTLR parse tree into R? >> >> >> >> Thanks >> >> >> >> Bill >> >> >> >> *From:* owner-nmus...@globomaxnm.com *On >> Behalf Of *Ruben

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

2018-06-14 Thread Ruben Faelens
Of *Ruben Faelens > > *Sent:* Thursday, June 14, 2018 8:55 AM > *To:* Tim Bergsma > *Cc:* nmusers@globomaxnm.com > *Subject:* Re: [NMusers] Context-free lexer for NM-TRAN > > > > Hi Tim, > > > > Thanks for pointing to that. > > Unfortunately, nonmemica uses regular

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 alr

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

2018-06-14 Thread Bill Denney
:55 AM *To:* Tim Bergsma *Cc:* nmusers@globomaxnm.com *Subject:* Re: [NMusers] Context-free lexer for NM-TRAN 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

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 $PK

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 Direct