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

15
LINES

< > BotCompany Repo | #1000654 // Runnable pseudo-code for parsing MySQL values

Document

for c-tokens from left to right between "values" and ";":
  if token == "(":
    start it all or start a row
  if token == ")":
    end row or end it all
  if token == ",":
    do nothing
  if token is quoted:
    save unquote(token)
  if token is number:
    save tostring(number)
  if token == "null":
    save null
  otherwise:
    scream help

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

Snippet ID: #1000654
Snippet name: Runnable pseudo-code for parsing MySQL values
Eternal ID of this version: #1000654/1
Text MD5: 37f5cc03b30baaba20e3acc673bca632
Author: stefan
Category:
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-21 16:21:28
Source code size: 360 bytes / 15 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 612 / 152
Referenced in: [show references]