testparsing

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Text/Strs/Chars/Links
Introduced first in SolidGeometry 5.1, Creation date: 2022-02-15, Last change: 2025-09-15

performs an interactive test parsing of a grammar fnct

Description

to test the parsing of grammarfunction, it is necessary to repeat a lot of input string chains. Therefor it is helpful to have an user mode in which inputs are processed but without executing of the command. This requires a loop including the user interface command input. To avoid the implementation of thos input loops as part if the grammar function, this function just takes an input, calls the grammar function and repeats it until a quit command is used

This function is also an tutorial how to implement natural language interpreter interfaces

See Also:

Example Illustration

 missing image of testparsing(fname,cmdstr)

Syntax

testparsing(fname,[cmdstr])

Input Parameter

fname: name of the grammar function such as jarvisgrammar
cmdstr: optional command string for testing

Examples


testparsing jarvisgrammar move contour ALPHA 10 10 % processes already a string chain
testparsing jarvisgrammar % simply starts the grammar parser test




Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21