test-case-3.in 847 B

1234567891011121314151617181920212223
  1. /*
  2. All lexical tokens - not syntactically correct, but
  3. that will have to wait until syntax analysis.
  4. */
  5. /* Print */ print /* Sub */ -
  6. /* Putc */ putc /* Lss */ <
  7. /* If */ if /* Gtr */ >
  8. /* Else */ else /* Leq */ <=
  9. /* While */ while /* Geq */ >=
  10. /* Lbrace */ { /* Eq */ ==
  11. /* Rbrace */ } /* Neq */ !=
  12. /* Lparen */ ( /* And */ &&
  13. /* Rparen */ ) /* Or */ ||
  14. /* Uminus */ - /* Semi */ ;
  15. /* Not */ ! /* Comma */ ,
  16. /* Mul */ * /* Assign */ =
  17. /* Div */ / /* Integer */ 42
  18. /* Mod */ % /* String */ "String literal"
  19. /* Add */ + /* Ident */ variable_name
  20. /* character literal */ '\n'
  21. /* character literal */ '\\'
  22. /* character literal */ ' '