Re: [Pharo-users] Installing SmaCC

2018-10-19 Thread Dimitris Chloupis
nice , good to know that is already a feature in another smalltalk implementation. I decided finally to go against the idea of new sytax or the heavy usage of Array symbols. Instead I will be using standard 100% Pharo syntax. Fortunately Smalltalk syntax is so minimal that allows me to do this

Re: [Pharo-users] Installing SmaCC

2018-10-18 Thread Pierce Ng
On Wed, Oct 17, 2018 at 01:38:36PM +0300, Dimitris Chloupis wrote: > About your last part on platforms, I will be providing a way to inline C > code so one can you use C macros to detect the platform and generate code > accordingly. Smalltalk/X allows inline C. Not sure about macros though, as I

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Thierry Goubier
version is 32-bit only, for reasons explained elsewhere in this thread. >>> >>> >>> >>> HTH >>> >>> >>> >>> Peter Kenny >>> >>>

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Dimitris Chloupis
no I wont be introducing new syntax, I rather keep this 100% smalltalk.Also LowTalk uses GC which is a no go for me. this is the "syntax" I am considering so its fully compatible with Pharo -- SomeClass >> helloWorld: aMessage #(char* aMessage

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Ben Coman
Perhaps a C-syntax front-end for Lowtalk would be interesting? http://forum.world.st/Re-ANN-Lowtalk-a-new-Smalltalk-dialect-that-could-eventually-replace-Slang-td4966907.html cheers -ben On Wed, 17 Oct 2018 at 19:37, Dimitris Chloupis wrote: > there will be no remap of variable names, this is

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Dimitris Chloupis
there will be no remap of variable names, this is a strict compiler if you can even call it a compiler. Your variable names will stay exactly the same in the C side , a concern here was that Pharo would not allow to have names like "my_personal_function". All the praise to Pharo it actually allows

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Thierry Goubier
Le mer. 17 oct. 2018 à 12:39, Dimitris Chloupis a écrit : > > About your last part on platforms, I will be providing a way to inline C code > so one can you use C macros to detect the platform and generate code > accordingly. Or this could happen via a pragma too, it should not be an > issue.

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Dimitris Chloupis
About your last part on platforms, I will be providing a way to inline C code so one can you use C macros to detect the platform and generate code accordingly. Or this could happen via a pragma too, it should not be an issue. This also a reason why I previously talked about an "in place"

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Dimitris Chloupis
Hello Allistair I have used Slang only once and it was generating code that was indeed readbale but my aim is for more finer control over the output. Lets say I want import a specific C header file or I want a string to map to custom C type I created etc. So yes Slang is by no mean a bad tool at

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Alistair Grant
Hi Dimitris, As someone currently learning to use Slang (i.e. not an expert), I've added my 2c below... On Wed, 17 Oct 2018 at 11:06, Dimitris Chloupis wrote: > > Thierry you have done it !!! you just gave a very easy solution to my > problems. > > Yeap Slang is quite close to what I am

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Dimitris Chloupis
> > >> >>> > > Metacello new > >> >>> > > baseline: 'SmaCC'; > >> >>> > > repository: 'github://ThierryGoubier/SmaCC'; > >> >>> > > load > >> >>&

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Thierry Goubier
;> > > >> >>> > > This worked in Pharo 6.1 in November 2017 >> >>> > > >> >>> > > On 10/16/18, Dimitris Chloupis > >>> > <mailto:kilon.al...@gmail.c

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Dimitris Chloupis
the info Peter , will give it a try :) > >>> > >> > >>> > >> On Tue, Oct 16, 2018 at 7:35 PM PBKResearch > >>> > mailto:pe...@pbkresearch.co.uk>> > >>> > >> wrote: > >>> > >>

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
t; >>> > >>> If you download the latest Moose Suite 6.1, you will have >>> > Pharo >>> > 6.1 with >>> > >>> lots of extra packages, including SmaCC. The SmaCC includes >>> > compilers >>> >

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Ben Coman
ittle or no >> > >>> documentation. >> > >>> I >> > >>> am not a SmaCC expert, so I can’t say whether it will do what >> > you want, >> > >>> but >> > >>> at least it w

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
arser and > > >>> PP2,if you want to try other parsing approaches. Of course, the > > Windows > > >>> version is 32-bit only, for reasons explained elsewhere in this > > thread. > > >>> > > >>> > >

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Thierry Goubier
ad. >>> >>> >>> >>> HTH >>> >>> >>> >>> Peter Kenny >>> >>> >>> >>> *From:* Pharo-users mailto:pharo-users-boun...@lists.pharo.org>> *On

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
xpert, so I can’t say whether it will do what you want, > >>> but > >>> at least it will give you a start. Moose also includes PetitParser and > >>> PP2,if you want to try other parsing approaches. Of course, the Windows > >>> version is 32-bit

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
> >>> >>> HTH >>> >>> >>> >>> Peter Kenny >>> >>> >>> >>> *From:* Pharo-users *On Behalf Of >>> *Dimitris >>> Chloupis >>> *Sent:* 16 October 2018 15:40 >>> *To:* Any question ab

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
;> version is 32-bit only, for reasons explained elsewhere in this thread. >> >> >> >> HTH >> >> >> >> Peter Kenny >> >> >> >> *From:* Pharo-users *On Behalf Of >> *Dimitris >> Chloupis >> *Sent:* 16 October 201

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
he Windows > version is 32-bit only, for reasons explained elsewhere in this thread. > > > > HTH > > > > Peter Kenny > > > > *From:* Pharo-users *On Behalf Of > *Dimitris > Chloupis > *Sent:* 16 October 2018 15:40 > *To:* Any question about pharo i

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread PBKResearch
Of Dimitris Chloupis Sent: 16 October 2018 15:40 To: Any question about pharo is welcome Subject: [Pharo-users] Installing SmaCC Hey guys I downloaded the latest Pharo 6.1 64bit for Windows and tried to install SmaCC through the catalog browser but it failed I did manage to install

[Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
Hey guys I downloaded the latest Pharo 6.1 64bit for Windows and tried to install SmaCC through the catalog browser but it failed I did manage to install it following the instruction in the github repo but I see that I am missing most parser packages. The languages I am interested are Smalltalk