Results 1 to 3 of 3

Thread: Math Evaluator

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2020
    Posts
    83

    Math Evaluator

    I've created a tiny compiler that scans, parses and evaluates math expressions.
    Example:
    Evaluator.Expression = "Sin(rad(x)) / abs(x)"
    For i = 1 To 10
    Console.WriteLine(Evaluator.Evaluate(i))
    Next
    The evaluator is written in VB .NET and it is a good place to start if you want to easily learn compilers!

    Source:
    https://github.com/VBAndCs/sVB-Small...rary/Evaluater

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,520

    Re: Math Evaluator

    That should be in the codebank… it’s not a question

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,146

    Re: Math Evaluator

    And now it is.
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width