ZHANGYUXUAN-zR commited on
Commit
d1630dc
·
verified ·
1 Parent(s): 6b52243

Add files using upload-large-folder tool

Browse files
Files changed (1) hide show
  1. parse/train/rywDjg-RW/rywDjg-RW.md +1 -1
parse/train/rywDjg-RW/rywDjg-RW.md CHANGED
@@ -59,7 +59,7 @@ Example 1. Consider the task of formatting a phone number, characterized by the
59
 
60
  The program the user is most likely looking for is the one that extracts (a) the part of the input enclosed in the first pair of parentheses, (b) the $7 ^ { \mathrm { t h } }$ to $4 ^ { \mathrm { t h } }$ characters from the end, and (c) the last 4 characters, and then concatenates all three parts using hyphens. In our DSL, this corresponds to:
61
 
62
- ConcatSubStr0(RegexPosition $( \boldsymbol { x } , ^ { 6 6 } ( ^ { 7 3 } , \varepsilon ) , 0 )$ , RegexPosition $( x , \langle \varepsilon , \overset { \ast } { , } ) \overset { \ast } { , } 0 ) ,$ ), ConstStr(“-”), SubStr0(AbsolutePosition $( x , - 8 )$ , AbsolutePosition $( x , - 5 )$ ), $\mathsf { C o n s t S t r } ( \mathsf { ^ { s \pm } _ { - } } , \mathsf { " } )$ , SubStr0(AbsolutePosition $( x , - 5 )$ , AbsolutePosition $( x , - 1 ) )$ 
63
 
64
  where $\varepsilon$ is an empty regex, $\mathsf { S u b S t r } _ { 0 } ( p o s _ { 1 } , p o s _ { 2 } )$ is an abbreviation for “let $x = { \mathsf { s t d } } . { \mathsf { K t h } } ( i n p u t s , 0 )$ in Substring $( x , \langle p o s _ { 1 } , p o s _ { 2 } \rangle ) ^ { \prime }$ , and $\langle \cdot \rangle$ is an abbreviation for std.Pair.
65
 
 
59
 
60
  The program the user is most likely looking for is the one that extracts (a) the part of the input enclosed in the first pair of parentheses, (b) the $7 ^ { \mathrm { t h } }$ to $4 ^ { \mathrm { t h } }$ characters from the end, and (c) the last 4 characters, and then concatenates all three parts using hyphens. In our DSL, this corresponds to:
61
 
62
+ ConcatSubStr0(RegexPosition $( \boldsymbol { x } , ^ { 6 6 } ( ^ { 7 3 } , \varepsilon ) , 0 )$ , RegexPosition $( x , \langle \varepsilon , \overset { \ast } { , } ) \overset { \ast } { , } 0 ) ,$ ), ConstStr(“-”), SubStr0(AbsolutePosition $( x , - 8 )$ , AbsolutePosition $( x , - 5 )$ ), $\mathsf { C o n s t S t r } ( \mathsf { ^ { s \pm } _ { - } } , \mathsf { " } )$ , SubStr0(AbsolutePosition $( x , - 5 )$ , AbsolutePosition $( x , - 1 ) )$ 
63
 
64
  where $\varepsilon$ is an empty regex, $\mathsf { S u b S t r } _ { 0 } ( p o s _ { 1 } , p o s _ { 2 } )$ is an abbreviation for “let $x = { \mathsf { s t d } } . { \mathsf { K t h } } ( i n p u t s , 0 )$ in Substring $( x , \langle p o s _ { 1 } , p o s _ { 2 } \rangle ) ^ { \prime }$ , and $\langle \cdot \rangle$ is an abbreviation for std.Pair.
65