janus.language.naive.simple_ast#

Attributes#

log

Functions#

get_flexible_ast(language, **kwargs)

Get a flexible AST splitter for the given language.

get_strict_ast(language[, prune_unprotected])

Get a strict AST splitter for the given language.

get_strict_listing_ast(language, **kwargs)

Get a strict AST splitter for the given language. This splitter is intended for

get_flexible_listing_ast(language, **kwargs)

Get a flexible AST splitter for the given language. This splitter is intended for

Module Contents#

janus.language.naive.simple_ast.log#
janus.language.naive.simple_ast.get_flexible_ast(language, **kwargs)#

Get a flexible AST splitter for the given language.

Parameters:

language (str) – The language to get the splitter for.

Returns:

A flexible AST splitter for the given language.

Return type:

janus.language.splitter.Splitter

janus.language.naive.simple_ast.get_strict_ast(language, prune_unprotected=True, **kwargs)#

Get a strict AST splitter for the given language.

The strict splitter will only return nodes that are of a functional type.

Parameters:

language (str) – The language to get the splitter for.

Returns:

A strict AST splitter for the given language.

Return type:

janus.language.splitter.Splitter

janus.language.naive.simple_ast.get_strict_listing_ast(language, **kwargs)#

Get a strict AST splitter for the given language. This splitter is intended for use with IBM HLASM.

The strict splitter will only return nodes that are of a functional type.

Parameters:

language (str) – The language to get the splitter for.

Returns:

A strict AST splitter for the given language.

Return type:

janus.language.splitter.Splitter

janus.language.naive.simple_ast.get_flexible_listing_ast(language, **kwargs)#

Get a flexible AST splitter for the given language. This splitter is intended for use with IBM HLASM.

Parameters:

language (str) – The language to get the splitter for.

Returns:

A flexible AST splitter for the given language.

Return type:

janus.language.splitter.Splitter