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

12
LINES

< > BotCompany Repo | #120 // differ example

Input/output example

input = {
  [[digit ::= "0"..."9"]],
  [[lowercase ::= "a"..."z"]]
}
output = {
  {"digit", "lowercase"},
  " ::= \"",
  {"0", "a"},
  "\"...\"",
  {"9", "z"},
  "\""
}

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: 781 / 375
Referenced in: [show references]