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
This file should have a class that accepts an unmodified input string and returns a list of run-able code blocks. In general each item of the list should be a single line of Stata code, except when that line of Stata code would not return to a dot prompt.
classCodeManager(object):
def__init__(self, code):
self.input=codeself.tokens=self.tokenize_code()
deftokenize_code(self):
# Do tokenizing with Pygments# Return a list of tokensdefis_complete(self):
# Analyze tokens# Determine if all of input is complete.# Return simple True/Falsedefcompletions(self, cursor_pos):
# Unclear whether it's necessary to tokenize the code for this.# Return dict with correct Jupyter messagedeftokens_to_lines():
# Form logical code chunks from tokens# This should also remove comments# Returns a list of code chunks that are safe to run in the console
The text was updated successfully, but these errors were encountered:
This file should have a class that accepts an unmodified input string and returns a list of run-able code blocks. In general each item of the list should be a single line of Stata code, except when that line of Stata code would not return to a dot prompt.
The text was updated successfully, but these errors were encountered: