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
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"
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
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
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
> 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.
>
> ->
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
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
---
2017 : The Art, Science, and Engineering of Programming
April 3-6, 2017, Brussels, Belgium
http://2017.programming-conference.org
---
Final call
...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
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
11 matches
Mail list logo