You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Definition: a lexical size for a program fragment is the number of lexemes in this fragment excluding comments.
If some two variants are equivalent in functionality (considering the required parts of functionality only), due to one can be implemented via another, we should take the variant that produces less summary lexical size.
If some A can be implemented via some B, and B can be implemented via A, then we should compare summary lexical code size of both variants of implementation, namely:
basis A (in a system specific way), and B over A
basis B (in a system specific way), and A over B
And take for basis a variant that produces the less summary lexical size.
Requirements
Support of recognizers nesting.
Nesting of recognizers is a case when a recognizer calls another particular recognizer, or calls the recognizer that the Forth text interpreter uses (i.e. the perceptor), and can behave dependently on what they are return. Example: news:[email protected].
To guarantee this ability, the recognizers shall not have side effects that are detectable by a standard program.
NB: if a recognizer calls the perceptor with the arguments that were passed to this recognizer, it can cause infinite indirect recursion in absence of a special care.
An ability to override any system's recognizers (e.g., the system's recognizers for numbers and for Forth words).
For example, it should provide a way to make recognizing numbers conaining dot as floating point numbers.
(to be provided ... )
The text was updated successfully, but these errors were encountered:
(under construction)
What variant is better among some two?
Definition: a lexical size for a program fragment is the number of lexemes in this fragment excluding comments.
If some two variants are equivalent in functionality (considering the required parts of functionality only), due to one can be implemented via another, we should take the variant that produces less summary lexical size.
If some A can be implemented via some B, and B can be implemented via A, then we should compare summary lexical code size of both variants of implementation, namely:
And take for basis a variant that produces the less summary lexical size.
Requirements
Nesting of recognizers is a case when a recognizer calls another particular recognizer, or calls the recognizer that the Forth text interpreter uses (i.e. the perceptor), and can behave dependently on what they are return. Example: news:[email protected].
To guarantee this ability, the recognizers shall not have side effects that are detectable by a standard program.
NB: if a recognizer calls the perceptor with the arguments that were passed to this recognizer, it can cause infinite indirect recursion in absence of a special care.
An ability to override any system's recognizers (e.g., the system's recognizers for numbers and for Forth words).
For example, it should provide a way to make recognizing numbers conaining dot as floating point numbers.
(to be provided ... )
The text was updated successfully, but these errors were encountered: