Re: [Pharo-users] Couple grafoscopio notes

2017-01-20 Thread Offray Vladimir Luna Cárdenas
Hi Peter, :-) On 19/01/17 11:49, Peter Uhnak wrote: Hi, I've started playing around with grafoscopio, I am happy that I can finally organize all those little scripts and not lose them all the time. :) Thanks for using Grafoscopio. It started to explore moldability by bridging

Re: [Pharo-users] Tools for easy subtext extraction from text

2017-01-20 Thread Henrik Nergaard
You can use #match and #upTo: on a ReadStream for easy extraction | text digits| text := ' Temperature 0 37C (98F) [0x25] (TMPIN0)' digits:= text readStream match: '[0x' ; upTo: $]. ( '16r' , digits ) asNumber "37"

Re: [Pharo-users] is PetitParser eager by default?

2017-01-20 Thread Peter Uhnak
On Fri, Jan 20, 2017 at 04:57:51PM +0100, Tudor Girba wrote: > Hi, > > When you have questions like these, you can also use the built-in debugging > facilities. For example, in your case, you can see that the #any parser > consumed everything like this: Ah, thanks. I was looking for this in

[Pharo-users] Tools for easy subtext extraction from text

2017-01-20 Thread Peter Uhnak
Hi, what are the tools available from easier text extraction? The input is unstructured text, but I want to extract portion from it. I am not looking for an engineered approach (writing a parser or something), but something that can be done quickly by hand (i.e. interactively). For example I

Re: [Pharo-users] is PetitParser eager by default?

2017-01-20 Thread Tudor Girba
Hi, When you have questions like these, you can also use the built-in debugging facilities. For example, in your case, you can see that the #any parser consumed everything like this: Cheers, Doru > On Jan 20, 2017, at 4:38 PM, Norbert Hartl wrote: > > >> Am

Re: [Pharo-users] is PetitParser eager by default?

2017-01-20 Thread Norbert Hartl
> Am 20.01.2017 um 15:24 schrieb Peter Uhnak : > > Is PetitParser eager by default? > > I've used PetitParser countless times so I am really baffled why this doesn't > work > > str := 'a0b'. > #any asParser star, #digit asParser, #any asParser star parse: str. > > ->

Re: [Pharo-users] is PetitParser eager by default?

2017-01-20 Thread Guillaume Larcheveque
Yes, the #any asParser star consume all your stream. for your example you can do: str := 'a0b'. #digit asParser negate star, #digit asParser, #any asParser star parse: str. 2017-01-20 15:24 GMT+01:00 Peter Uhnak : > Is PetitParser eager by default? > > I've used PetitParser

[Pharo-users] is PetitParser eager by default?

2017-01-20 Thread Peter Uhnak
Is PetitParser eager by default? I've used PetitParser countless times so I am really baffled why this doesn't work str := 'a0b'. #any asParser star, #digit asParser, #any asParser star parse: str. -> PPFailure (input expected at: 3) Thanks, Peter

[Pharo-users] 2017: Final call for workshop, symposium, demo & poster submissions

2017-01-20 Thread Tim Molderez
--- 2017 : The Art, Science, and Engineering of Programming April 3-6, 2017, Brussels, Belgium http://2017.programming-conference.org --- Final call

Re: [Pharo-users] Usability issue with Pharo 5

2017-01-20 Thread Hilaire
...another one In an implementor view, when selecting a method in the top list, then clicking somewhere in the text view, the carret does not follow, you have to clic again! Another regression compare to Pharo3. -- Dr. Geo http://drgeo.eu

[Pharo-users] Usability issue with Pharo 5

2017-01-20 Thread Hilaire
Playing with Pharo5 with Phratch, I just noted two usability problems: - Short cut for class ref does not work (CTRL+SHIFT+B) - selecting a word by double clicking in text editor is not as good as before, you need to be fast on your double click. It worked as a charm with Pharo 3. - when right