C/C++ Parser
The C/C++ parser is used for C and C++ language source files.
The C/C++ parser uses syntax highlighting to identify language elements, including the following elements:
- Identifiers
- Operators
- Punctuation
- Continuation character
- Braces
- Keywords
- C library functions
- Literals
- Directives
- Comments
- Embedded CICSĀ® statements
- Embedded SQL statements
The C/C++ parser is an extension of the LPEX C/C++ parser. The C/C++ parser provides the following features:
- View filters: you can filter the lines that appear by language element. For example, you can specify that you only want lines that contain a macro instruction to appear.
- Language-sensitive help:
- You can select an instruction in the source file and press F1 on Windows or FN+F1 on macOS to open a help page for the selected instruction or macro
- Access custom context-sensitive help that you create for your own use.
- Color customization: you can change the colors that are used to color various language elements
By default, the following types of files use the C/C++ parser:
- .C
- .c
- .C++
- .c++
- .CPP
- .cpp
- .H
- .h
- .HPP
- .hpp
- .SQC
- .sqc
- In the left navigation pane of the Preferences window, double-click the LPEX Editor node to open the tree of available preference pages.
- Double-click the Parsers node to open the tree of available Parser preference pages.
- Click Parser Associations to open the Parser Associations preference page.
In the Document Parser column, the C/C++ parser is identified by tpfcpp.
Setting C/C++ Parser preferences
You can use the C/C++ Parser preference page to specify preferences for the C/C++ parser. See Setting C/C++ parser preferences.
Using the Outline view with C/C+ source
The Outline view is a tree representation of the current C/C++ file that you are editing. It is updated as text is modified in the editor. See Using the outline view with C/C++.
Using content assist with C/C+ source
You can use content assist to help you finish a line of C/C++ code in the z Systems LPEX Editor. See Using content assist with C/C++.