Re: [Pharo-users] Tonel Fileout

2018-06-30 Thread Tim Mackinnon
I think the tests for Tonel reader/writer do exactly that in memory trick - so I think we could get a no e soln. But to get 1.0 I think we get a menu item running with import/export and then we can in parallel write examples and build out a better integration. Would be nice to show we can play

Re: [Pharo-users] Tonel Fileout

2018-06-30 Thread Ben Coman
On 30 June 2018 at 16:24, Ben Coman wrote: > On 16 Jun 2018, at 15:38, Ben Coman wrote: >> >> Le 16/06/2018 à 10:43, Ben Coman a écrit : >> >>> How can a fileout/filein be done using Tonel format? >>> In the first case as a script? >>> and secondly as a possible menu option for Pharo? >>> >>> Th

Re: [Pharo-users] Tonel Fileout

2018-06-30 Thread Ben Coman
> > On 16 Jun 2018, at 15:38, Ben Coman wrote: > > Le 16/06/2018 à 10:43, Ben Coman a écrit : > >> How can a fileout/filein be done using Tonel format? >> In the first case as a script? >> and secondly as a possible menu option for Pharo? >> >> This is to facilitate transfer of student coding exer

Re: [Pharo-users] Tonel Fileout

2018-06-29 Thread Tim Mackinnon
As another output (and an answer to Ben’s question) - to output, you need a snapshot - the easiest I could work out was something like: TonelWriter new sourceDir: '.' asFileReference; writeSnapshot: (MCPackage named: HelloWorldTest package name) snapshot. > On 29 Jun 2018, at 17:11, Tim Macki

Re: [Pharo-users] Tonel Fileout

2018-06-29 Thread Tim Mackinnon
Just as a followup to this - Bens suggestion can be slightly simplified (and less dependent on implementation details) as: tonelStream := ‘…path…./src/Polymorph-Widgets-Rules/IconShortcutRule.class.st' asFileReference readStream. parser := (TonelParser on: tonelStream). parser document do: [ :it

Re: [Pharo-users] Tonel Fileout

2018-06-16 Thread Tim Mackinnon
Not quite the same usecase . But on github it’s a brilliant format for a side project - I can hack code on the tube on my phone with a build ci server to report the results when I surface (very lazy programming, but with a family and limited time - needs must) . Tim Sent from my iPhone > On 1

Re: [Pharo-users] Tonel Fileout

2018-06-16 Thread Esteban Lorenzano
> On 16 Jun 2018, at 16:38, Ben Coman wrote: > > Le 16/06/2018 à 10:43, Ben Coman a écrit : > How can a fileout/filein be done using Tonel format? > In the first case as a script? > and secondly as a possible menu option for Pharo? > > This is to facilitate transfer of student coding exercises

Re: [Pharo-users] Tonel Fileout

2018-06-16 Thread Ben Coman
Le 16/06/2018 à 10:43, Ben Coman a écrit : > How can a fileout/filein be done using Tonel format? > In the first case as a script? > and secondly as a possible menu option for Pharo? > > This is to facilitate transfer of student coding exercises for Exercism. > http://exercism.io/languages/pharo/

Re: [Pharo-users] Tonel Fileout

2018-06-16 Thread Hilaire
Hi Ben, I am not sure, but the purpose of Tonel is to propose a file representation of "one class=one file". In that case, does exporting a whole package in one file with the Tonel notation exist or make sense? Why not using Fileout st files to transfer the code? (RPackage named: 'DrGeoII-