guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nyacc support for extension languages


From: Joshua Branson
Subject: Re: nyacc support for extension languages
Date: Mon, 20 Aug 2018 12:00:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Matt Wette <address@hidden> writes:

> On 08/19/2018 02:28 PM, Joshua Branson wrote:
>
>> Matt Wette <address@hidden> writes:
>>
>>
> I thought about this a bit.  I think hope for 100% compatibility is not there.
> For example, javascript strings are always 16bit code points, whereas Guile 
> strings
> are either 8-bit characters or 32-bit code points.
>
> Also, I'd like to "fix" some problems in javascript.  For example
>
> var a = 1;
> if (1) {
>   var a = 2;
> }
> a => 2
> if (1) {
>   let a = 3;
> }
> a => 2
>
> I have made "var" inside blocks illegal. And "let" is not standard, but I'm 
> adding it.

That's pretty cool to add let inside javascript!

>
> I also want to make the underlying data model consistent among languages, so 
> that may
> take some "massaging" of the language def's.
>
> Matt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]