You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Voice commands such as add continue statement should be context specific, in the sense that the continue keyword is only allowed inside a loop statement (while, do...whie and for). This can be achieved by using a parser to read and make sense of the surrounds before the command execution.
In the snippet below, where the mouse is in line 3, a valid command could be invert the conditional statement and that would transform value > 112 in !(value > 112), but before doing that we need to know that in line 3 we have a JavaScript conditional statement and not some random piece of text. This can be achieved with JS parsers such as Esprima and Reflect.js
1constvalue=7*4223if(value>112){|// <- mouse cursor is here!4...
The aim of this issue is to use a programming language parser to make sense of the surrounds in order to offer context specific voice commands.
The text was updated successfully, but these errors were encountered:
Description
Voice commands such as add
continue
statement should be context specific, in the sense that thecontinue
keyword is only allowed inside a loop statement (while
,do...whie
andfor
). This can be achieved by using a parser to read and make sense of the surrounds before the command execution.In the snippet below, where the mouse is in line
3
, a valid command could be invert the conditional statement and that would transformvalue > 112
in!(value > 112)
, but before doing that we need to know that in line3
we have a JavaScript conditional statement and not some random piece of text. This can be achieved with JS parsers such as Esprima and Reflect.jsThe aim of this issue is to use a programming language parser to make sense of the surrounds in order to offer context specific voice commands.
The text was updated successfully, but these errors were encountered: