octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39831] New Tex interpreter requires delimiter


From: Rik
Subject: [Octave-bug-tracker] [bug #39831] New Tex interpreter requires delimiters around characters
Date: Fri, 23 Aug 2013 18:34:46 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0

Follow-up Comment #5, bug #39831 (project octave):

Adding all the symbols to the lexer is somewhat annoying, but the list is very
static and the work would only need to be done once.

As a side benefit, we currently do a linear search through the 101 symbols to
go from symbol name to Unicode character set.  Computers are fast these days
so this isn't exactly horrible, but it is kind of inefficient.  I had thought
about using an STL map for this operation to reduce this to log2(101)
operations.  But another possibility would be to assign lexer token ID for
each symbol in such a way that we can just directly look up the unicode value
using "symbol_codes[LEXER_ID]" in txt-eng.cc.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39831>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]