montepy.input_parser.input_syntax_reader.read_input_syntax#
- montepy.input_parser.input_syntax_reader.read_input_syntax(input_file, mcnp_version=(6, 3, 0), replace=True)#
Creates a generator function to return a new MCNP input for every new one that is encountered.
This is meant to just handle the MCNP input syntax, it does not semantically parse the inputs.
The version must be a three component tuple e.g., (6, 2, 0) and (5, 1, 60).
- Parameters:
input_file (MCNP_InputFile) – the path to the input file to be read
mcnp_version (tuple) – The version of MCNP that the input is intended for.
replace (bool) – replace all non-ASCII characters with a space (0x20)
- Returns:
a generator of MCNP_Object objects
- Return type:
generator