query_src_text: Query srcML XML

query_src_textR Documentation

Query srcML XML

Description

Queries srcML XML for code units (e.g. function names, declarations, etc.). For a list of code units and languages supported by srcML XML see: https://www.srcml.org/documentation.html.

Usage

query_src_text(srcml_path, xpath_query, srcml_filepath)

Arguments

srcml_path

The path to srcML binary

xpath_query

The XPath query to be performed on the .xml

srcml_filepath

The path to the srcML file to be queried (see annotate_src_text).

Details

Note a query, unless explicitly specified to be parsed (e.g. by using the string() scrML function), is a srcML XML itself, which can be also queried.

Value

The path where the output xml was saved (i.e. srcml_filepath)

References

For details, see https://www.srcml.org/tutorials/xpath-query.html.


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.