Skip to content

Commit

Permalink
add - and / operators
Browse files Browse the repository at this point in the history
44100hertz committed Feb 5, 2024
1 parent 81f4013 commit a533b2b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion structedit/liveparse.js
Original file line number Diff line number Diff line change
@@ -37,10 +37,18 @@ const operators = {
precedence: 0,
semantics: 'infix',
},
"-": {
precedence: 0,
semantics: 'infix',
},
"*": {
precedence: 1,
semantics: 'infix',
}
},
"/": {
precedence: 1,
semantics: 'infix',
},
}

const tokenKinds = {

0 comments on commit a533b2b

Please sign in to comment.