HN2new | past | comments | ask | show | jobs | submitlogin

Here's some pseudocode that should help you get started on a very simple thing

  evalExpression:
    switch peekChar
      ( evalFunctionCall
      0-9 parseNumber
      " parseString
      a-zA-Z parseAndGetVariable

  evalFunctionCall
     fn = evalExpression
     arguments = evalExpression  until )
     fn(arguments)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: