Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tokenizer in QB64
#23
@SpriggsySpriggs I am unfamiliar with token systems, have I summerized the goal correctly:
read a string and count chars of interest into a (Shared?) array?

So input string and chars of interest, output array of chars and their counts < dont even have to share this!

BTW allot of code savy guys seem to frown upon sharing?

I think I prefer sharing specially with arrays we can't output as functions.
I don't know the overhead involved under the hood to pass an array to routine.
Is it worth adding another parameter to the user defined routine?

Seems to me the sharing question is first thing to resolve in cleaning up this code.

Also Aurel makes a huge list of constants for each char, why not make 1 string of chars, their position in string associates to their index number so if first char is (
then CharList$ = "("

That works only if single chars not longer words but I don't think he uses words (more than 1 char).
b = b + ...
Reply


Messages In This Thread
Tokenizer in QB64 - by aurel - 02-25-2023, 02:52 PM
RE: Tokenizer in QB64 - by bplus - 02-25-2023, 03:36 PM
RE: Tokenizer in QB64 - by aurel - 02-25-2023, 03:40 PM
RE: Tokenizer in QB64 - by bplus - 02-25-2023, 03:42 PM
RE: Tokenizer in QB64 - by aurel - 02-25-2023, 03:43 PM
RE: Tokenizer in QB64 - by mnrvovrfc - 02-25-2023, 05:13 PM
RE: Tokenizer in QB64 - by aurel - 02-25-2023, 03:48 PM
RE: Tokenizer in QB64 - by bplus - 02-25-2023, 03:53 PM
RE: Tokenizer in QB64 - by bplus - 02-25-2023, 03:55 PM
RE: Tokenizer in QB64 - by bplus - 02-25-2023, 04:00 PM
RE: Tokenizer in QB64 - by aurel - 02-25-2023, 04:47 PM
RE: Tokenizer in QB64 - by aurel - 02-25-2023, 04:49 PM
RE: Tokenizer in QB64 - by aurel - 02-25-2023, 07:54 PM
RE: Tokenizer in QB64 - by aurel - 11-21-2023, 04:13 PM
RE: Tokenizer in QB64 - by RhoSigma - 11-21-2023, 04:58 PM
RE: Tokenizer in QB64 - by aurel - 11-21-2023, 06:05 PM
RE: Tokenizer in QB64 - by bplus - 11-21-2023, 06:44 PM
RE: Tokenizer in QB64 - by aurel - 11-22-2023, 10:11 AM
RE: Tokenizer in QB64 - by RhoSigma - 11-22-2023, 12:23 PM
RE: Tokenizer in QB64 - by mnrvovrfc - 11-22-2023, 09:17 PM
RE: Tokenizer in QB64 - by mdijkens - 11-22-2023, 11:25 AM
RE: Tokenizer in QB64 - by bplus - 11-22-2023, 01:30 PM
RE: Tokenizer in QB64 - by SpriggsySpriggs - 11-22-2023, 01:53 PM
RE: Tokenizer in QB64 - by bplus - 11-22-2023, 03:07 PM
RE: Tokenizer in QB64 - by SpriggsySpriggs - 11-22-2023, 03:24 PM
RE: Tokenizer in QB64 - by aurel - 11-22-2023, 04:38 PM
RE: Tokenizer in QB64 - by aurel - 11-22-2023, 04:44 PM
RE: Tokenizer in QB64 - by aurel - 11-22-2023, 04:48 PM
RE: Tokenizer in QB64 - by aurel - 11-22-2023, 05:01 PM
RE: Tokenizer in QB64 - by bplus - 11-22-2023, 05:28 PM
RE: Tokenizer in QB64 - by aurel - 11-22-2023, 07:03 PM
RE: Tokenizer in QB64 - by bplus - 11-22-2023, 09:03 PM
RE: Tokenizer in QB64 - by aurel - 11-23-2023, 10:17 AM
RE: Tokenizer in QB64 - by mnrvovrfc - 11-23-2023, 01:49 PM
RE: Tokenizer in QB64 - by bplus - 11-23-2023, 02:17 PM
RE: Tokenizer in QB64 - by aurel - 11-23-2023, 05:47 PM
RE: Tokenizer in QB64 - by mnrvovrfc - 12-09-2023, 07:52 AM
RE: Tokenizer in QB64 - by SMcNeill - 11-23-2023, 06:54 PM
RE: Tokenizer in QB64 - by aurel - 01-06-2024, 02:07 PM



Users browsing this thread: 2 Guest(s)