|
Verilog Parser
|
Describes the top level, programmer facing parser API. More...
Functions | |
| int | verilog_parse_buffer (char *to_parse, int length) |
| Perform a parsing operation on the supplied in-memory string. More... | |
| int | verilog_parse_file (FILE *to_parse) |
| Perform a parsing operation on the supplied file. More... | |
| int | verilog_parse_string (char *to_parse, int length) |
| Perform a parsing operation on the supplied in-memory string. More... | |
| void | verilog_parser_init () |
| Sets up the parsing environment ready for input. More... | |
Describes the top level, programmer facing parser API.
| int verilog_parse_buffer | ( | char * | to_parse, |
| int | length | ||
| ) |
Perform a parsing operation on the supplied in-memory string.
Parses the supplied string, reading at most "length" bytes, adding any parsed constructs to the existing yy_verilog_source_tree object, and using the existing yy_preproc preprocessor context.
| [in] | to_parse | - The string to be parsed. |
| [in] | length | - How many characters of to_parse to process. |
module valid_module();
initial begin
$display("This module is valid");
end
endmodule
module invalid_module();
initial begin
$display("This module is syntactically invalid");
endmodule
then the first "valid_module" object will be added to the source tree, but the second will not.
| int verilog_parse_file | ( | FILE * | to_parse | ) |
Perform a parsing operation on the supplied file.
Parses the supplied file object, adding any parsed constructs to the existing yy_verilog_source_tree object, and using the existing yy_preproc preprocessor context.
| [in] | to_parse | - The open file object to be parsed. |
module valid_module();
initial begin
$display("This module is valid");
end
endmodule
module invalid_module();
initial begin
$display("This module is syntactically invalid");
endmodule
then the first "valid_module" object will be added to the source tree, but the second will not.
Perform a parsing operation on the supplied file.
| int verilog_parse_string | ( | char * | to_parse, |
| int | length | ||
| ) |
Perform a parsing operation on the supplied in-memory string.
Parses the supplied string, reading at most "length" bytes, adding any parsed constructs to the existing yy_verilog_source_tree object, and using the existing yy_preproc preprocessor context.
| [in] | to_parse | - The string to be parsed. |
| [in] | length | - How many characters of to_parse to process. |
module valid_module();
initial begin
$display("This module is valid");
end
endmodule
module invalid_module();
initial begin
$display("This module is syntactically invalid");
endmodule
then the first "valid_module" object will be added to the source tree, but the second will not.
| void verilog_parser_init | ( | ) |
Sets up the parsing environment ready for input.
Makes sure that there is a vaild preprocessor context and source tree object ready to store any parsed constructs.