1 | for c-tokens from left to right between "values" and ";": |
2 | if token == "(": |
3 | start it all or start a row |
4 | if token == ")": |
5 | end row or end it all |
6 | if token == ",": |
7 | do nothing |
8 | if token is quoted: |
9 | save unquote(token) |
10 | if token is number: |
11 | save tostring(number) |
12 | if token == "null": |
13 | save null |
14 | otherwise: |
15 | scream help |
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: | 669 / 171 |
Referenced in: | [show references] |