semvec/pypi-packages huggingface dataset:
GLPB 1.0
The module will help you create a programming language
License: Apache License 2.0

The module will help you create a programming language

author = Groiznyi-Studio

project = GLPB(Groiznyi Lexer Parser Builder)

version = 1.0

year = 2021

license = GPL


Constants:
	1)ZERO_ARGUMENT = 'ZA'

	2)ONE_ARGUMENT = 'OA'

Classes:
	1)GLPBuilder
	Functions:

		1)addRuleLex(self, nameCommand, countArguments)
        	"""Function to add lexer rules

        	nameCommand - the name of your command, this name will be used by the lex function when parsing strings
        	countArguments - indicates the number of arguments accepted by the command
        	Example:

        	addRuleLex(self, 'exit', ZERO_ARGUMENT)

        	addRuleLex(self, 'exit', ONE_ARGUMENT)"""


		2)getType(self, line)
        	"""Function to determine the data type

        	line - string with the expected data type
        	Example:

        	getType(self, '4') >>> return 'integer'
        
        	getType(self, '"hello"') >>> return 'string'"""


		3)getTokens(self)
        	"""Function to get all tokens"""


		4)__isCommand(self, line)
        	"""Function checks if line is the command declared in the rules"""


		5)lex(self, lines):
        	"""Function for parsing strings, parsing is based on the declared rules

        	lines - list of strings
        	Example:

        	lex(self, ['exit 4', 'out    "hello, world!!!"']
        	Warning:
        	-----------------------------------------------------------------------
        	If the rules are not observed during the analysis, a RuntimeError exception occurs,
        	you can read the error in the RuntimeError message"""


		6)parse(self)
        	"""Lexer token parsing function

        	Warning:

        	If an error occurs during parsing, a RuntimeError exception is thrown,
        	you can read the error in the RuntimeError post"""