A little expression interpreter for new forthcoming book

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

A little expression interpreter for new forthcoming book

Stephane Ducasse-3

I released a version of a little expression interpreter for the new book: Object-oriented programming and design with Pharo. 

https://ci.inria.fr/pharo-contribution/view/Books/job/LearningObjectOrientedProgramming/63/artifact/book.pdf

Typos are welcome as pull requests. 

Stef

Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

abergel
Hi Stef!

You have written a lot of material. This is great!

I had a look at the chapter about the interpreter.  Looks great!
Figure 17.3 Multiplication>>evaluate It should be “*”, not “+"

Alexandre




> On Jan 8, 2017, at 1:24 PM, Stephane Ducasse <[hidden email]> wrote:
>
> I released a version of a little expression interpreter for the new book: Object-oriented programming and design with Pharo.
>
> https://ci.inria.fr/pharo-contribution/view/Books/job/LearningObjectOrientedProgramming/63/artifact/book.pdf
>
> Typos are welcome as pull requests.
>
> Stef

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

Sven Van Caekenberghe-2
In reply to this post by Stephane Ducasse-3
Looks very promising. It is a great, much needed subject area. And a huge task as well.

I personally like chapter 7 as introduction, a lot, in terms of conceptual approach. If it were me, I would put it first (but the current intro reflects that already a bit, so I am not sure).

Also, personally I like to introduce syntax in a less complex/intimidating way, skipping some of the weird/special parts, those could go in a later 'advanced syntax' part, to stress how simple the basic/most used syntax actually is.

That are the only parts I read, up to now ...

> On 8 Jan 2017, at 17:24, Stephane Ducasse <[hidden email]> wrote:
>
> I released a version of a little expression interpreter for the new book: Object-oriented programming and design with Pharo.
>
> https://ci.inria.fr/pharo-contribution/view/Books/job/LearningObjectOrientedProgramming/63/artifact/book.pdf
>
> Typos are welcome as pull requests.
>
> Stef


Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

stepharong
Hi sven

for now I'm dumping what I have in my head. Once I will finish to "vomit"  
I will redo a full pass.

> Looks very promising. It is a great, much needed subject area. And a  
> huge task as well.
>
> I personally like chapter 7 as introduction, a lot, in terms of  
> conceptual approach. If it were me, I would put it first (but the  
> current intro reflects that already a bit, so I am not sure).

I do not know too :)

> Also, personally I like to introduce syntax in a less  
> complex/intimidating way, skipping some of the weird/special parts,  
> those could go in a later 'advanced syntax' part, to stress how simple  
> the basic/most used syntax actually is.

Yes you are right I will move syntax in an appendix.
And I should probably see what is the essential and have a basic intro to  
syntax.


> That are the only parts I read, up to now ...

I'm measuring how time it takes me and this is slow :(
I hope to get faster but I'm just slow. Took me two week evenings for  
expressions but it is really
a nice overview of OOP. I'm revising it based on questions of my son.

Stef

>
>> On 8 Jan 2017, at 17:24, Stephane Ducasse <[hidden email]>  
>> wrote:
>>
>> I released a version of a little expression interpreter for the new  
>> book: Object-oriented programming and design with Pharo.
>>
>> https://ci.inria.fr/pharo-contribution/view/Books/job/LearningObjectOrientedProgramming/63/artifact/book.pdf
>>
>> Typos are welcome as pull requests.
>>
>> Stef
>
>


--
Using Opera's mail client: http://www.opera.com/mail/

Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

stepharong
In reply to this post by abergel
excellent catch :)

On Sun, 08 Jan 2017 19:02:01 +0100, Alexandre Bergel  
<[hidden email]> wrote:

> Hi Stef!
>
> You have written a lot of material. This is great!
>
> I had a look at the chapter about the interpreter.  Looks great!
> Figure 17.3 Multiplication>>evaluate It should be “*”, not “+"
>
> Alexandre
>
>
>
>
>> On Jan 8, 2017, at 1:24 PM, Stephane Ducasse <[hidden email]>  
>> wrote:
>>
>> I released a version of a little expression interpreter for the new  
>> book: Object-oriented programming and design with Pharo.
>>
>> https://ci.inria.fr/pharo-contribution/view/Books/job/LearningObjectOrientedProgramming/63/artifact/book.pdf
>>
>> Typos are welcome as pull requests.
>>
>> Stef
>


--
Using Opera's mail client: http://www.opera.com/mail/

Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

stepharong
fixed.
Alex
this chapter alone is really nice to present OOP and OOD and Pharo to  
people can start.
I'm adding some points to answer question raised by my son and it will be  
ready to rest.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

abergel
Okay!

Alexandre


> On Jan 8, 2017, at 4:34 PM, stepharong <[hidden email]> wrote:
>
> fixed.
> Alex
> this chapter alone is really nice to present OOP and OOD and Pharo to people can start.
> I'm adding some points to answer question raised by my son and it will be ready to rest.
>
> Stef

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

Damien Pollet-2
I just went through it and saw a few possible tweaks (you know me). I'll commit them directly if I get the time

On 8 January 2017 at 20:50, Alexandre Bergel <[hidden email]> wrote:
Okay!

Alexandre


> On Jan 8, 2017, at 4:34 PM, stepharong <[hidden email]> wrote:
>
> fixed.
> Alex
> this chapter alone is really nice to present OOP and OOD and Pharo to people can start.
> I'm adding some points to answer question raised by my son and it will be ready to rest.
>
> Stef

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: A little expression interpreter for new forthcoming book

Stephane Ducasse-3
Please Damien :)
You know, I first dumping and after revisiting.

On Mon, Jan 9, 2017 at 8:03 PM, Damien Pollet <[hidden email]> wrote:
I just went through it and saw a few possible tweaks (you know me). I'll commit them directly if I get the time

On 8 January 2017 at 20:50, Alexandre Bergel <[hidden email]> wrote:
Okay!

Alexandre


> On Jan 8, 2017, at 4:34 PM, stepharong <[hidden email]> wrote:
>
> fixed.
> Alex
> this chapter alone is really nice to present OOP and OOD and Pharo to people can start.
> I'm adding some points to answer question raised by my son and it will be ready to rest.
>
> Stef

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.