Displaying 19 results from an estimated 19 matches for "left_assign".
2020 Apr 22
2
parse data wrong for R 4.0. raw strings
...line2 col2 id parent token terminal text
#> 7 1 1 1 24 7 0 expr FALSE
#> 1 1 1 1 1 1 3 SYMBOL TRUE x
#> 3 1 1 1 1 3 7 expr FALSE
#> 2 1 3 1 4 2 7 LEFT_ASSIGN TRUE <-
#> 4 1 6 1 24 4 6 STR_CONST TRUE "hello, "world")
#> 6 1 6 1 24 6 7 expr FALSE
Note that for STR_CONST, the opening delimiter is not included, but
the paren from the closing delimiter is.
Best,...
2018 Jul 30
2
Problem with parseData
..., 2)"
[4] "parseData = c(6, 1, 1, 4, 6, 6, 3, 3, 5, 7, 7)"
[5] "parseData = c(7, 1, 3, 2, 4, 5, 10, 12, 11, 13, 14)"
[6] "parseData = c(0, 3, 7, 7, 5, 7, 12, 0, 0, 14, 0)"
[7] "parseData = c(\"expr\", \"SYMBOL\", \"expr\", \"LEFT_ASSIGN\",
\"NUM_CONST\", \"expr\", \"SYMBOL\", \"expr\", \"EQ_ASSIGN\",
\"NUM_CONST\", \"expr\")"
[8] "parseData = c(FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE,
TRUE, TRUE, FALSE)"
[9] "parseData = c(...
2018 Oct 02
1
Problem with parseData
...ata = c(6, 1, 1, 4, 6, 6, 3, 3, 5, 7, 7)"
>> [5] "parseData = c(7, 1, 3, 2, 4, 5, 10, 12, 11, 13, 14)"
>> [6] "parseData = c(0, 3, 7, 7, 5, 7, 12, 0, 0, 14, 0)"
>> [7] "parseData = c(\"expr\", \"SYMBOL\", \"expr\", \"LEFT_ASSIGN\",
>> \"NUM_CONST\", \"expr\", \"SYMBOL\", \"expr\", \"EQ_ASSIGN\",
>> \"NUM_CONST\", \"expr\")"
>> [8] "parseData = c(FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE,
>> TRUE, TRUE, FALS...
2020 Apr 22
1
[External] parse data wrong for R 4.0. raw strings
...al text
> > #> 7 1 1 1 24 7 0 expr FALSE
> > #> 1 1 1 1 1 1 3 SYMBOL TRUE x
> > #> 3 1 1 1 1 3 7 expr FALSE
> > #> 2 1 3 1 4 2 7 LEFT_ASSIGN TRUE <-
> > #> 4 1 6 1 24 4 6 STR_CONST TRUE "hello, "world")
> > #> 6 1 6 1 24 6 7 expr FALSE
> >
> > Note that for STR_CONST, the opening delimiter is not included, but
> >...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...of src/main/gram.y, preferably without introducing conflicts) and
> its semantics (including the corner cases, some of which you have
> already mentioned). I'm not sure I'm up to the task.
>
If I were doing it, here's what I'd propose:
'[' formlist ']' LEFT_ASSIGN expr
'[' formlist ']' EQ_ASSIGN expr
expr RIGHT_ASSIGN '[' formlist ']'
where `formlist` has the syntax of the formals list for a function
definition. This would have the following semantics:
{
*tmp* <- expr
# For arguments with no &quo...
2023 Mar 11
3
Multiple Assignment built into the R Interpreter?
...ithout introducing conflicts) and
> > its semantics (including the corner cases, some of which you have
> > already mentioned). I'm not sure I'm up to the task.
> >
>
> If I were doing it, here's what I'd propose:
>
> '[' formlist ']' LEFT_ASSIGN expr
> '[' formlist ']' EQ_ASSIGN expr
> expr RIGHT_ASSIGN '[' formlist ']'
>
> where `formlist` has the syntax of the formals list for a function
> definition. This would have the following semantics:
>
> {
> *tmp* <- exp...
2018 Aug 16
0
Problem with parseData
..."parseData = c(6, 1, 1, 4, 6, 6, 3, 3, 5, 7, 7)"
> [5] "parseData = c(7, 1, 3, 2, 4, 5, 10, 12, 11, 13, 14)"
> [6] "parseData = c(0, 3, 7, 7, 5, 7, 12, 0, 0, 14, 0)"
> [7] "parseData = c(\"expr\", \"SYMBOL\", \"expr\", \"LEFT_ASSIGN\",
> \"NUM_CONST\", \"expr\", \"SYMBOL\", \"expr\", \"EQ_ASSIGN\",
> \"NUM_CONST\", \"expr\")"
> [8] "parseData = c(FALSE, TRUE, FALSE, TRUE, TRUE, FALSE, TRUE, FALSE,
> TRUE, TRUE, FALSE)"
> [9...
2020 Apr 22
0
[External] parse data wrong for R 4.0. raw strings
...t token terminal text
> #> 7 1 1 1 24 7 0 expr FALSE
> #> 1 1 1 1 1 1 3 SYMBOL TRUE x
> #> 3 1 1 1 1 3 7 expr FALSE
> #> 2 1 3 1 4 2 7 LEFT_ASSIGN TRUE <-
> #> 4 1 6 1 24 4 6 STR_CONST TRUE "hello, "world")
> #> 6 1 6 1 24 6 7 expr FALSE
>
> Note that for STR_CONST, the opening delimiter is not included, but
> the paren from the clos...
2014 Jan 25
0
interpreting the output of getParseData()
...; df
line1 col1 line2 col2 id parent token terminal text
29 1 1 1 31 29 30 expr FALSE
1 1 1 1 1 1 3 SYMBOL TRUE f
3 1 1 1 1 3 29 expr FALSE
2 1 2 1 3 2 29 LEFT_ASSIGN TRUE <-
28 1 4 1 31 28 29 expr FALSE
4 1 4 1 11 4 28 FUNCTION TRUE function
5 1 12 1 12 5 28 '(' TRUE (
6 1 13 1 13 6 28 ')' TRUE )
25...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...ts) and
> > its semantics (including the corner cases, some of which you have
> > already mentioned). I'm not sure I'm up to the task.
> >
>
> If I were doing it, here's what I'd propose:
>
> ? ?'[' formlist ']' LEFT_ASSIGN expr
> ? ?'[' formlist ']' EQ_ASSIGN expr
> ? ?expr RIGHT_ASSIGN? '[' formlist ']'
>
> where `formlist` has the syntax of the formals list for a function
> definition.? This would have the following semantics:
>
> ? ? {
&...
2023 Mar 11
2
Multiple Assignment built into the R Interpreter?
...emantics (including the corner cases, some of which you have
> > > already mentioned). I'm not sure I'm up to the task.
> > >
> >
> > If I were doing it, here's what I'd propose:
> >
> > '[' formlist ']' LEFT_ASSIGN expr
> > '[' formlist ']' EQ_ASSIGN expr
> > expr RIGHT_ASSIGN '[' formlist ']'
> >
> > where `formlist` has the syntax of the formals list for a function
> > definition. This would have the following semantics:...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
On Sat, 11 Mar 2023 11:11:06 -0500
Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> That's clear, but your proposal violates a very basic property of the
> language, i.e. that all statements are expressions and have a value.
How about reframing this feature request from multiple assignment
(which does go contrary to "everything has only one value, even if it's
2023 Mar 12
2
Multiple Assignment built into the R Interpreter?
...s, some of which you
> have
> > > > already mentioned). I'm not sure I'm up to the task.
> > > >
> > >
> > > If I were doing it, here's what I'd propose:
> > >
> > > '[' formlist ']' LEFT_ASSIGN expr
> > > '[' formlist ']' EQ_ASSIGN expr
> > > expr RIGHT_ASSIGN '[' formlist ']'
> > >
> > > where `formlist` has the syntax of the formals list for a function
> > > definition. This would have...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...gt; > > its semantics (including the corner cases, some of which you have
> > > already mentioned). I'm not sure I'm up to the task.
> > >
> >
> > If I were doing it, here's what I'd propose:
> >
> > '[' formlist ']' LEFT_ASSIGN expr
> > '[' formlist ']' EQ_ASSIGN expr
> > expr RIGHT_ASSIGN '[' formlist ']'
> >
> > where `formlist` has the syntax of the formals list for a function
> > definition. This would have the following semantics:
> >
> &g...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...? ? ? > already mentioned). I'm not sure I'm up to the task.
> > >? ? ? >
> > >
> > >? ? ?If I were doing it, here's what I'd propose:
> > >
> > >? ? ? ? ?'[' formlist ']' LEFT_ASSIGN expr
> > >? ? ? ? ?'[' formlist ']' EQ_ASSIGN expr
> > >? ? ? ? ?expr RIGHT_ASSIGN? '[' formlist ']'
> > >
> > >? ? ?where `formlist` has the syntax of the formals list for
> a functio...
2024 Mar 04
1
[External] Re: capture "->"
Maybe someone has already suggested this, but if your functions accepted
strings you could use sub or gsub to replace the -> with a symbol that
parsed at the same precedence as <-,
say <<-. Then parse it and deal with it. When it is time to display the
parsed and perhaps manipulated formulae to the user, deparse it and do the
reverse replacement.
> encode <-
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...ned). I'm not sure I'm up to the task.
> > > > >
> > > >
> > > > If I were doing it, here's what I'd propose:
> > > >
> > > > '[' formlist ']' LEFT_ASSIGN expr
> > > > '[' formlist ']' EQ_ASSIGN expr
> > > > expr RIGHT_ASSIGN '[' formlist ']'
> > > >
> > > > where `formlist` has the syntax of the formals list for
&g...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...; > > the task.
> > > ???????? > >????? >
> > > ???????? > >
> > > ???????? > >???? If I were doing it, here's what I'd propose:
> > > ???????? > >
> > > ???????? > >???????? '[' formlist ']' LEFT_ASSIGN expr
> > > ???????? > >???????? '[' formlist ']' EQ_ASSIGN expr
> > > ???????? > >???????? expr RIGHT_ASSIGN? '[' formlist ']'
> > > ???????? > >
> > > ???????? > >???? where `formlist` has the syntax of the...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...task.
>>>> ???????? > >????? >
>>>> ???????? > >
>>>> ???????? > >???? If I were doing it, here's what I'd propose:
>>>> ???????? > >
>>>> ???????? > >???????? '[' formlist ']' LEFT_ASSIGN expr
>>>> ???????? > >???????? '[' formlist ']' EQ_ASSIGN expr
>>>> ???????? > >???????? expr RIGHT_ASSIGN? '[' formlist ']'
>>>> ???????? > >
>>>> ???????? > >???? where `formlist` has the s...