diff options
Diffstat (limited to 'pyGHDL/libghdl/vhdl/scanner.py')
-rw-r--r-- | pyGHDL/libghdl/vhdl/scanner.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pyGHDL/libghdl/vhdl/scanner.py b/pyGHDL/libghdl/vhdl/scanner.py new file mode 100644 index 000000000..765986f85 --- /dev/null +++ b/pyGHDL/libghdl/vhdl/scanner.py @@ -0,0 +1,24 @@ +from pyGHDL.libghdl import libghdl +from ctypes import c_int, c_bool + + +Set_File = libghdl.vhdl__scanner__set_file + +Close_File = libghdl.vhdl__scanner__close_file + +Scan = libghdl.vhdl__scanner__scan + +# This is a c_int, so you want to use its .value +Current_Token = c_int.in_dll(libghdl, "vhdl__scanner__current_token") + +Flag_Comment = c_bool.in_dll(libghdl, "vhdl__scanner__flag_comment") + +Get_Current_Line = libghdl.vhdl__scanner__get_current_line + +Get_Token_Offset = libghdl.vhdl__scanner__get_token_offset + +Get_Token_Position = libghdl.vhdl__scanner__get_token_position + +Get_Position = libghdl.vhdl__scanner__get_position + +Current_Identifier = libghdl.vhdl__scanner__current_identifier |