Re: [Pharo-users] Installing SmaCC

2018-10-18 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 with

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
>> 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. >>> >>> >>> >>> HTH >>>

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 newMessage

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 a

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. T

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" annotation

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 a

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 thinkin

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Dimitris Chloupis
What about trying > >> >>> > > > >> >>> > > > >> >>> > > Metacello new > >> >>> > > baseline: 'SmaCC'; > >> >>> > > repository: 'github://Thier

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Thierry Goubier
pository: 'github://ThierryGoubier/SmaCC'; >> >>> > > load >> >>> > > >> >>> > > This worked in Pharo 6.1 in November 2017 >> >>> > > >> &

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
;> > <mailto:kilon.al...@gmail.com>> wrote: > >>> > >> thanks for the info Peter , will give it a try :) > >>> > >> > >>> > >> On Tue, Oct 16, 2018 at 7:35 PM PBKResearch > >>> > mailto:pe.

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
>>> > >>> >>> > >>> >>> > >>> >>> > >>> If you download the latest Moose Suite 6.1, you will have >>> > Pharo >>> > 6.1 with >>> > >>> lots

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Ben Coman
>> for >> > >>> C, Smalltalk and Java, among others, but with little or no >> > >>> documentation. >> > >>> I >> > >>> am not a SmaCC expert, so I can’t say whether it will do what >> > you want

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
; >>> 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 only, for reasons explained elsewhere in

Re: [Pharo-users] Installing SmaCC

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

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
gt; I > >>> am not a SmaCC expert, 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 Win

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
re in this thread. >>> >>> >>> >>> HTH >>> >>> >>> >>> Peter Kenny >>> >>> >>> >>> *From:* Pharo-users *On Behalf Of >>> *Dimitris >>> Chloupis >>> *Sent:* 16 October 2018

Re: [Pharo-users] Installing SmaCC

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

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
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 it

[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