AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
pump.py File Reference

Classes

class  pump.Cursor
 
class  pump.Token
 
class  pump.CodeNode
 
class  pump.VarNode
 
class  pump.RangeNode
 
class  pump.ForNode
 
class  pump.ElseNode
 
class  pump.IfNode
 
class  pump.RawCodeNode
 
class  pump.LiteralDollarNode
 
class  pump.ExpNode
 
class  pump.Env
 
class  pump.Output
 

Namespaces

 pump
 

Functions

def pump.Eof ()
 
def pump.StartsWith (lines, pos, string)
 
def pump.FindFirstInLine (line, token_table)
 
def pump.FindFirst (lines, token_table, cursor)
 
def pump.SubString (lines, start, end)
 
def pump.StripMetaComments (str)
 
def pump.MakeToken (lines, start, end, token_type)
 
def pump.ParseToken (lines, pos, regex, token_type)
 
def pump.Skip (lines, pos, regex)
 
def pump.SkipUntil (lines, pos, regex, token_type)
 
def pump.ParseExpTokenInParens (lines, pos)
 
def pump.RStripNewLineFromToken (token)
 
def pump.TokenizeLines (lines, pos)
 
def pump.Tokenize (s)
 
def pump.PopFront (a_list)
 
def pump.PushFront (a_list, elem)
 
def pump.PopToken (a_list, token_type=None)
 
def pump.PeekToken (a_list)
 
def pump.ParseExpNode (token)
 
def pump.ParseElseNode (tokens)
 
def pump.ParseAtomicCodeNode (tokens)
 
def pump.ParseCodeNode (tokens)
 
def pump.ParseToAST (pump_src_text)
 
def pump.RunAtomicCode (env, node, output)
 
def pump.RunCode (env, code_node, output)
 
def pump.IsSingleLineComment (cur_line)
 
def pump.IsInPreprocessorDirective (prev_lines, cur_line)
 
def pump.WrapComment (line, output)
 
def pump.WrapCode (line, line_concat, output)
 
def pump.WrapPreprocessorDirective (line, output)
 
def pump.WrapPlainCode (line, output)
 
def pump.IsMultiLineIWYUPragma (line)
 
def pump.IsHeaderGuardIncludeOrOneLineIWYUPragma (line)
 
def pump.WrapLongLine (line, output)
 
def pump.BeautifyCode (string)
 
def pump.ConvertFromPumpSource (src_text)
 
def pump.main (argv)
 

Variables

list pump.TOKEN_TABLE
 
 pump.ID_REGEX = re.compile(r'[_A-Za-z]\w*')
 
 pump.EQ_REGEX = re.compile(r'=')
 
 pump.REST_OF_LINE_REGEX = re.compile(r'.*?(?=$|\$\$)')
 
 pump.OPTIONAL_WHITE_SPACES_REGEX = re.compile(r'\s*')
 
 pump.WHITE_SPACE_REGEX = re.compile(r'\s')
 
 pump.DOT_DOT_REGEX = re.compile(r'\.\.')
 

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0