Trying to decipher a text that has been copied into a Word table, the formatting is very confusing.
I am looking to extract the rows as objects in an array, with the columns serving as properties of each object. I would like to accomplish this using Vuejs (ES6) or JavaScript.
Here is a screenshot of the Word table with its columns: word screenshot
.code
Input
store N
load cero
store sum
initWhile Load N
sub cero
jz endWhile
load sum
add N
store Sum
load n
sub Uno
Store N
jmp initWhile
endWhile load sum
output
halt
.data
n
Cero
Sum
Uno
def uno 01
The data in the Word table seems to be structured around tabs, but at times information overlaps across different columns.