Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #120 // differ example

Input/output example

1  
input = {
2  
  [[digit ::= "0"..."9"]],
3  
  [[lowercase ::= "a"..."z"]]
4  
}
5  
output = {
6  
  {"digit", "lowercase"},
7  
  " ::= \"",
8  
  {"0", "a"},
9  
  "\"...\"",
10  
  {"9", "z"},
11  
  "\""
12  
}

Author comment

Note that there IS some guess work involved.

For example, if "digit" and "lowercase" had common characters, a differ might see these characters as a common part of both texts.

So we assume some heuristics like keeping words in one piece. Those heuristics may or may not apply for a given task.

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 179 [visualize]

Snippet ID: #120
Snippet name: differ example
Eternal ID of this version: #120/1
Text MD5: 17d427756ddab1bb63bb8a5696cd19ad
Author: stefan
Category: python parsing
Type: Input/output example
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-01-10 19:42:54
Source code size: 179 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 782 / 375
Referenced in: [show references]