fork download
  1. letter [a-zA-Z]
  2. digit [0-9]
  3. opFrac "."{digit}+
  4. opExponent [Ee][+-]?{digit}+
  5. num {digit}+{opFrac}?{opExponent}?
  6. id {letter}({letter}|{digit})*
  7.  
  8. %%
  9. int|float|char {printf("keyword \n");}
  10. {id} {printf("ID\n");}
  11. {digit}+ {printf("number \n");}
  12. [" "|\t|\n] ;
  13. \+ {printf("plus \n");}
  14. . {printf("other \n");}
Success #stdin #stdout #stderr 0.03s 6900KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/QNzoH1/prog:1:24: Syntax error: Operator expected
ERROR: /home/QNzoH1/prog:14:45: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit