Re: TermL vs JSON: "\/"

Kevin Reid <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
On Jan 15, 2009, at 0:00, Mark Miller wrote:

> On Wed, Jan 14, 2009 at 8:06 PM, David-Sarah Hopwood
> <david.hopwood-mRVxzIiVagSlV3Ge8JjJtnfLna9zW77MtUK59QYPAWc@public.gmane.org> wrote:
>> Kevin Reid wrote:
>>> Should \/ be permitted in all other BaseLexer-derived languages?
>>
>> Which languages are those exactly? It seems harmless for languages
>> where '\/' is not already defined to mean something else, which is
>> unlikely.
>
> E, Orc-in-E, and TermL. The Orc-in-E is proof of concept, and is not
> meant to rigorously conform to any Orc spec, so I think it's fine for
> now.

OK to commit a change adding \/ to BaseLexer, then?

Do you know of any JSON parsing test suite?

> But if we did want variation between languages, we could change
> BaseLexer#charConstantInternal() from private to protected and
> override it in the language-specific subclasses.

charConstantInternal has some complexity to it unrelated to escapes; I  
would suggest extracting only the body of if ('\\' == myChar).

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.