Thread: Math equation tokenization

  1. #1
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413

    Math equation tokenization

    Looking for a library that will tokenize a math-"oriented" string. I know of GNU Bison/flex, and have also found this: GNU libmatheval - GNU Project - Free Software Foundation (FSF).

    Really, I either need some decent reading material on parsing/tokenizing or a simpler library that will take something like "a = 5*4/(3+2*somefunc(5));" and split it up by the operators.

    Thanks in advance for any suggestions.

  2. #2
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Using Regular Expressions for Lexical Analysis is helpful, but I suck at regular expressions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Math equation help!!
    By alex33zebras in forum C Programming
    Replies: 2
    Last Post: 09-27-2011, 03:31 PM
  2. How to do a math equation in c Programming
    By jabber5050 in forum C Programming
    Replies: 6
    Last Post: 09-08-2011, 01:08 PM
  3. Need help reducing an equation, math wiz's welcome. =)
    By M.Richard Tober in forum C++ Programming
    Replies: 6
    Last Post: 07-23-2011, 05:45 PM
  4. C++ math equation
    By XodoX in forum C++ Programming
    Replies: 22
    Last Post: 03-02-2009, 12:02 AM
  5. A math equation
    By dizolve in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 12-17-2002, 12:56 PM