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
Le 17/10/2018 à 07:36, H. Hirzel a écrit : The successor of Ni is 'Spry' https://github.com/gokr/spry http://sprylang.se/ "Spry borrows homoiconicity from Rebol and Lisp, free form syntax from Forth and Rebol, the word of different types from Rebol, good data structure literal support from Java

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
Thierry you have done it !!! you just gave a very easy solution to my problems. Yeap Slang is quite close to what I am thinking, unfortunately Clement told me to stay away from it because the code is ugly and specially used for VM only. If I remember also correctly it does not generate readable C

Re: [Pharo-users] Installing SmaCC

2018-10-17 Thread Thierry Goubier
Le mer. 17 oct. 2018 à 08:44, Dimitris Chloupis a écrit : > > Those are interesting languages and probably better ideas than what I am > thinking. However they are not what I am talking about. > > The language I am making is called "Magnatar" > > Magnatar is not Smalltalk, but it is a Smalltalk t

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
Those are interesting languages and probably better ideas than what I am thinking. However they are not what I am talking about. The language I am making is called "Magnatar" Magnatar is not Smalltalk, but it is a Smalltalk trojan horse. My main goals are 1) Create 100% readable C code, code th

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
The successor of Ni is 'Spry' https://github.com/gokr/spry http://sprylang.se/ "Spry borrows homoiconicity from Rebol and Lisp, free form syntax from Forth and Rebol, the word of different types from Rebol, good data structure literal support from JavaScript and the general coding experience and

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Ben Coman
Have you looked at Ni? (I only read about it) http://goran.krampe.se/2015/09/16/ni-a-strange-little-language/ cheers -ben On Wed, 17 Oct 2018 at 03:45, Dimitris Chloupis wrote: > Thank you Thierry , that was exactly what i was looking for :) > > On the subject of syntax, StrongTalk looks far m

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
Thank you Thierry , that was exactly what i was looking for :) On the subject of syntax, StrongTalk looks far more advanced compared to what I am aiming which is basically writting C code with Smalltalk like syntax. I am looking at this http://bracha.org/nwst.html Which describes some really imp

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Thierry Goubier
Hi Dimitris, Le 16/10/2018 à 19:39, Dimitris Chloupis a écrit : yes i already said that i followed the instructions in the github repo Yes, by default that installation of SmaCC does not load all parsers (some of them are fairly large). However, most of them are in the downloaded repository,

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
yes i already said that i followed the instructions in the github repo On Tue, Oct 16, 2018 at 8:18 PM H. Hirzel wrote: > Refers to > https://github.com/SmaCCRefactoring/SmaCC > > which says > > This is the port for Smalltalk/Pharo 1.3, 2, 3, 4, 5 and 6. > > > Installing a Development v

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
Refers to https://github.com/SmaCCRefactoring/SmaCC which says This is the port for Smalltalk/Pharo 1.3, 2, 3, 4, 5 and 6. Installing a Development version of Pharo for the latest Pharo (with no guarantees): Metacello new baseline: 'SmaCC'; repository: 'github://SmaCCRefactori

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread H. Hirzel
What about trying Metacello new baseline: 'SmaCC'; repository: 'github://ThierryGoubier/SmaCC'; load This worked in Pharo 6.1 in November 2017 On 10/16/18, Dimitris Chloupis wrote: > thanks for the info Peter , will give it a try :) > > On Tue, Oct 16, 2018 at 7:35 PM PBKResear

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread Dimitris Chloupis
thanks for the info Peter , will give it a try :) On Tue, Oct 16, 2018 at 7:35 PM PBKResearch wrote: > Dimitris > > > > 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 for > C, Smalltalk and Java, am

Re: [Pharo-users] Installing SmaCC

2018-10-16 Thread PBKResearch
Dimitris 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 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 wha