hydra.dsl.ast module
DSL functions for hydra.ast.
- hydra.dsl.ast.block_style(indent: TypedTerm[object], newline_before_content: TypedTerm[bool], newline_after_content: TypedTerm[bool]) TypedTerm[BlockStyle]
DSL constructor for hydra.ast.BlockStyle.
- hydra.dsl.ast.block_style_indent(x: TypedTerm[BlockStyle]) TypedTerm[object]
DSL accessor for the indent field of hydra.ast.BlockStyle.
- hydra.dsl.ast.block_style_newline_after_content(x: TypedTerm[BlockStyle]) TypedTerm[bool]
DSL accessor for the newlineAfterContent field of hydra.ast.BlockStyle.
- hydra.dsl.ast.block_style_newline_before_content(x: TypedTerm[BlockStyle]) TypedTerm[bool]
DSL accessor for the newlineBeforeContent field of hydra.ast.BlockStyle.
- hydra.dsl.ast.block_style_with_indent(original: TypedTerm[BlockStyle], new_val: TypedTerm[object]) TypedTerm[BlockStyle]
DSL updater for the indent field of hydra.ast.BlockStyle.
- hydra.dsl.ast.block_style_with_newline_after_content(original: TypedTerm[BlockStyle], new_val: TypedTerm[bool]) TypedTerm[BlockStyle]
DSL updater for the newlineAfterContent field of hydra.ast.BlockStyle.
- hydra.dsl.ast.block_style_with_newline_before_content(original: TypedTerm[BlockStyle], new_val: TypedTerm[bool]) TypedTerm[BlockStyle]
DSL updater for the newlineBeforeContent field of hydra.ast.BlockStyle.
- hydra.dsl.ast.bracket_expr(brackets: TypedTerm[Brackets], enclosed: TypedTerm[Expr], style: TypedTerm[BlockStyle]) TypedTerm[BracketExpr]
DSL constructor for hydra.ast.BracketExpr.
- hydra.dsl.ast.bracket_expr_brackets(x: TypedTerm[BracketExpr]) TypedTerm[Brackets]
DSL accessor for the brackets field of hydra.ast.BracketExpr.
- hydra.dsl.ast.bracket_expr_enclosed(x: TypedTerm[BracketExpr]) TypedTerm[Expr]
DSL accessor for the enclosed field of hydra.ast.BracketExpr.
- hydra.dsl.ast.bracket_expr_style(x: TypedTerm[BracketExpr]) TypedTerm[BlockStyle]
DSL accessor for the style field of hydra.ast.BracketExpr.
- hydra.dsl.ast.bracket_expr_with_brackets(original: TypedTerm[BracketExpr], new_val: TypedTerm[Brackets]) TypedTerm[BracketExpr]
DSL updater for the brackets field of hydra.ast.BracketExpr.
- hydra.dsl.ast.bracket_expr_with_enclosed(original: TypedTerm[BracketExpr], new_val: TypedTerm[Expr]) TypedTerm[BracketExpr]
DSL updater for the enclosed field of hydra.ast.BracketExpr.
- hydra.dsl.ast.bracket_expr_with_style(original: TypedTerm[BracketExpr], new_val: TypedTerm[BlockStyle]) TypedTerm[BracketExpr]
DSL updater for the style field of hydra.ast.BracketExpr.
- hydra.dsl.ast.brackets(open: TypedTerm[Symbol], close: TypedTerm[Symbol]) TypedTerm[Brackets]
DSL constructor for hydra.ast.Brackets.
- hydra.dsl.ast.brackets_close(x: TypedTerm[Brackets]) TypedTerm[Symbol]
DSL accessor for the close field of hydra.ast.Brackets.
- hydra.dsl.ast.brackets_open(x: TypedTerm[Brackets]) TypedTerm[Symbol]
DSL accessor for the open field of hydra.ast.Brackets.
- hydra.dsl.ast.brackets_with_close(original: TypedTerm[Brackets], new_val: TypedTerm[Symbol]) TypedTerm[Brackets]
DSL updater for the close field of hydra.ast.Brackets.
- hydra.dsl.ast.brackets_with_open(original: TypedTerm[Brackets], new_val: TypedTerm[Symbol]) TypedTerm[Brackets]
DSL updater for the open field of hydra.ast.Brackets.
- hydra.dsl.ast.expr_brackets(x: TypedTerm[BracketExpr]) TypedTerm[Expr]
DSL injection for the brackets variant of hydra.ast.Expr.
- hydra.dsl.ast.expr_const(x: TypedTerm[Symbol]) TypedTerm[Expr]
DSL injection for the const variant of hydra.ast.Expr.
- hydra.dsl.ast.expr_indent(x: TypedTerm[IndentedExpression]) TypedTerm[Expr]
DSL injection for the indent variant of hydra.ast.Expr.
- hydra.dsl.ast.expr_op(x: TypedTerm[OpExpr]) TypedTerm[Expr]
DSL injection for the op variant of hydra.ast.Expr.
- hydra.dsl.ast.expr_seq(x: TypedTerm[SeqExpr]) TypedTerm[Expr]
DSL injection for the seq variant of hydra.ast.Expr.
- hydra.dsl.ast.indent_style_all_lines(x: TypedTerm[str]) TypedTerm[IndentStyle]
DSL injection for the allLines variant of hydra.ast.IndentStyle.
- hydra.dsl.ast.indent_style_subsequent_lines(x: TypedTerm[str]) TypedTerm[IndentStyle]
DSL injection for the subsequentLines variant of hydra.ast.IndentStyle.
- hydra.dsl.ast.indented_expression(style: TypedTerm[IndentStyle], expr: TypedTerm[Expr]) TypedTerm[IndentedExpression]
DSL constructor for hydra.ast.IndentedExpression.
- hydra.dsl.ast.indented_expression_expr(x: TypedTerm[IndentedExpression]) TypedTerm[Expr]
DSL accessor for the expr field of hydra.ast.IndentedExpression.
- hydra.dsl.ast.indented_expression_style(x: TypedTerm[IndentedExpression]) TypedTerm[IndentStyle]
DSL accessor for the style field of hydra.ast.IndentedExpression.
- hydra.dsl.ast.indented_expression_with_expr(original: TypedTerm[IndentedExpression], new_val: TypedTerm[Expr]) TypedTerm[IndentedExpression]
DSL updater for the expr field of hydra.ast.IndentedExpression.
- hydra.dsl.ast.indented_expression_with_style(original: TypedTerm[IndentedExpression], new_val: TypedTerm[IndentStyle]) TypedTerm[IndentedExpression]
DSL updater for the style field of hydra.ast.IndentedExpression.
- hydra.dsl.ast.op(symbol: TypedTerm[Symbol], padding: TypedTerm[Padding], precedence: TypedTerm[Precedence], associativity: TypedTerm[Associativity]) TypedTerm[Op]
DSL constructor for hydra.ast.Op.
- hydra.dsl.ast.op_associativity(x: TypedTerm[Op]) TypedTerm[Associativity]
DSL accessor for the associativity field of hydra.ast.Op.
- hydra.dsl.ast.op_expr(op: TypedTerm[Op], lhs: TypedTerm[Expr], rhs: TypedTerm[Expr]) TypedTerm[OpExpr]
DSL constructor for hydra.ast.OpExpr.
- hydra.dsl.ast.op_expr_lhs(x: TypedTerm[OpExpr]) TypedTerm[Expr]
DSL accessor for the lhs field of hydra.ast.OpExpr.
- hydra.dsl.ast.op_expr_op(x: TypedTerm[OpExpr]) TypedTerm[Op]
DSL accessor for the op field of hydra.ast.OpExpr.
- hydra.dsl.ast.op_expr_rhs(x: TypedTerm[OpExpr]) TypedTerm[Expr]
DSL accessor for the rhs field of hydra.ast.OpExpr.
- hydra.dsl.ast.op_expr_with_lhs(original: TypedTerm[OpExpr], new_val: TypedTerm[Expr]) TypedTerm[OpExpr]
DSL updater for the lhs field of hydra.ast.OpExpr.
- hydra.dsl.ast.op_expr_with_op(original: TypedTerm[OpExpr], new_val: TypedTerm[Op]) TypedTerm[OpExpr]
DSL updater for the op field of hydra.ast.OpExpr.
- hydra.dsl.ast.op_expr_with_rhs(original: TypedTerm[OpExpr], new_val: TypedTerm[Expr]) TypedTerm[OpExpr]
DSL updater for the rhs field of hydra.ast.OpExpr.
- hydra.dsl.ast.op_padding(x: TypedTerm[Op]) TypedTerm[Padding]
DSL accessor for the padding field of hydra.ast.Op.
- hydra.dsl.ast.op_precedence(x: TypedTerm[Op]) TypedTerm[Precedence]
DSL accessor for the precedence field of hydra.ast.Op.
- hydra.dsl.ast.op_symbol(x: TypedTerm[Op]) TypedTerm[Symbol]
DSL accessor for the symbol field of hydra.ast.Op.
- hydra.dsl.ast.op_with_associativity(original: TypedTerm[Op], new_val: TypedTerm[Associativity]) TypedTerm[Op]
DSL updater for the associativity field of hydra.ast.Op.
- hydra.dsl.ast.op_with_padding(original: TypedTerm[Op], new_val: TypedTerm[Padding]) TypedTerm[Op]
DSL updater for the padding field of hydra.ast.Op.
- hydra.dsl.ast.op_with_precedence(original: TypedTerm[Op], new_val: TypedTerm[Precedence]) TypedTerm[Op]
DSL updater for the precedence field of hydra.ast.Op.
- hydra.dsl.ast.op_with_symbol(original: TypedTerm[Op], new_val: TypedTerm[Symbol]) TypedTerm[Op]
DSL updater for the symbol field of hydra.ast.Op.
- hydra.dsl.ast.padding(left: TypedTerm[Ws], right: TypedTerm[Ws]) TypedTerm[Padding]
DSL constructor for hydra.ast.Padding.
- hydra.dsl.ast.padding_left(x: TypedTerm[Padding]) TypedTerm[Ws]
DSL accessor for the left field of hydra.ast.Padding.
- hydra.dsl.ast.padding_right(x: TypedTerm[Padding]) TypedTerm[Ws]
DSL accessor for the right field of hydra.ast.Padding.
- hydra.dsl.ast.padding_with_left(original: TypedTerm[Padding], new_val: TypedTerm[Ws]) TypedTerm[Padding]
DSL updater for the left field of hydra.ast.Padding.
- hydra.dsl.ast.padding_with_right(original: TypedTerm[Padding], new_val: TypedTerm[Ws]) TypedTerm[Padding]
DSL updater for the right field of hydra.ast.Padding.
- hydra.dsl.ast.precedence(x: TypedTerm[int]) TypedTerm[Precedence]
DSL constructor for the hydra.ast.Precedence wrapper.
- hydra.dsl.ast.seq_expr(op: TypedTerm[Op], elements: TypedTerm[Sequence[Expr]]) TypedTerm[SeqExpr]
DSL constructor for hydra.ast.SeqExpr.
- hydra.dsl.ast.seq_expr_elements(x: TypedTerm[SeqExpr]) TypedTerm[Sequence[Expr]]
DSL accessor for the elements field of hydra.ast.SeqExpr.
- hydra.dsl.ast.seq_expr_op(x: TypedTerm[SeqExpr]) TypedTerm[Op]
DSL accessor for the op field of hydra.ast.SeqExpr.
- hydra.dsl.ast.seq_expr_with_elements(original: TypedTerm[SeqExpr], new_val: TypedTerm[Sequence[Expr]]) TypedTerm[SeqExpr]
DSL updater for the elements field of hydra.ast.SeqExpr.
- hydra.dsl.ast.seq_expr_with_op(original: TypedTerm[SeqExpr], new_val: TypedTerm[Op]) TypedTerm[SeqExpr]
DSL updater for the op field of hydra.ast.SeqExpr.
- hydra.dsl.ast.symbol(x: TypedTerm[str]) TypedTerm[Symbol]
DSL constructor for the hydra.ast.Symbol wrapper.
- hydra.dsl.ast.un_precedence(x: TypedTerm[Precedence]) TypedTerm[int]
DSL accessor for the body of hydra.ast.Precedence.