If you follow java's dogma that each class should be contained
in 1 file and with the same name as the class defined, then it
will be easier to blame.
Thu, 11 Apr 2019, Ian Clark написал(а):
> Henry wrote:
> > …and a global assignment only for the place that you know is the top
> level?
>
> Troub
Ah, I knew there should be an easy way to accomplish that.
Thank you Raul for the workaround and the explanation about the expected ranks.
From: Programming on behalf of Raul
Miller
Sent: Thursday, April 11, 2019 1:52 PM
To: Programming forum
Subject: Re: [Jprog
Ok, looking at the error it gives, it seems that there's a problem
with the current implementation of rxmerge where it doesn't deal with
some match arguments.
You can work around that problem for this example like this:
(,new) (,/(pat;,1+i.4) rxmatches test) rxmerge test
a
( 3,4
5,6
And... I see I misread your post... hang on and ignore my previous
message, I've got some other things I'm focusing on (or supposed to be
focussing on), but this looks like something that should be easy to
answer
sorry about the noise...
--
Raul
On Thu, Apr 11, 2019 at 1:39 PM Raul Miller
P.S. Assuming that you do want to replace the matched digit sequences
with their offsets, you probably want to use this rxmerge:
https://code.jsoftware.com/wiki/Guides/Regular_Expressions/Verbs#rxmerge
You'll need the match data (offsets and length) to make this work.
I hope this helps,
--
Rau
I get a different result from what you got, which suggests you had
changed your regexp, perhaps to something like this:
pat =: '\(\s+(\d+)\,(\d+)\s+(\d+)\,(\d+)\s+\)'
Ah... I now see that your followup has an updated pattern...
---
Anyways, what I don't understand is what you meant
I'm sorry, the pattern should be:
pat =: '\( (\d+)\,(\d+)\s+(\d+)\,(\d+)\s+\)'
From: Programming on behalf of Nimp
O
Sent: Thursday, April 11, 2019 1:01 PM
To: programm...@jsoftware.com
Subject: [Jprogramming] Regex merge with multiple groups
Hello everyone,
Her
Hello everyone,
Here is a minimal working example of what I'm trying to accomplish:
load'regex'
pat =: '\( (\d)\,(\d)\s+(\d)\,(\d)\s+\)'
test=: 0 : 0
a
( 2,3
4,5 )
c
( 10,11
12,13 )
)
So using the regex pattern I was able to extract the numbers from this string.
Each
Hi Chris,
I'll try to capture a repeatable sequence to generate the error. The challenge
is that the error occurs maybe once or twice a week.
Best Regards,
Esa
-Original Message-
From: Programming On Behalf Of chris
burke
Sent: Thursday, April 11, 2019 3:31 PM
To: Programming forum
S
Please see if you can provide a sequence of steps that reproduce the
problem, so we can track it down. Thanks.
On Thu, Apr 11, 2019 at 12:12 AM Lippu Esa wrote:
> Thanks Bill!
>
> I got the error again and tried wd 'reset' as you suggested. It fixed the
> error.
>
> Much, much more convenient th
Henry wrote:
> …and a global assignment only for the place that you know is the top
level?
Trouble is, if you're using JQt IDE to maintain an addon, the top level
changes.
++ During development, it is your buildfile: /myaddon/source/build.ijs.
++ But once a user downloads it via pacman, it is myad
Thanks Bill!
I got the error again and tried wd 'reset' as you suggested. It fixed the error.
Much, much more convenient than restarting J. Great!
Esa
-Original Message-
From: Programming On Behalf Of bill
lam
Sent: Monday, April 8, 2019 1:45 AM
To: Programming forum
Subject: Re: [Jpr
12 matches
Mail list logo