Create compiler with PHP

Discussion in 'PHP' started by 2mk_atspace, Jun 22, 2008.

  1. #1
    How to create program like this :

    http://lecturer.ukdw.ac.id/anton/kompiler2.php

    Example input :

    START 1
    SET b 11
    PRINT b
    END

    Output :

    START 1
    11

    Start 1 -> set program id to 1
    set b 11 -> set b to 11
    print b -> output b

    I don't know how to read the string.
     
    2mk_atspace, Jun 22, 2008 IP