package tiny_languages

  1. Overview
  2. Docs
Small languages from scratch: Scheme, Lisp, Smalltalk-80, Pascal, BASIC, JavaScript, HTML, CSS and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_languages.smalltalk/St_lexer/index.html

Module St_lexerSource

Sourcetype kind =
  1. | Name of string
  2. | Keyword of string
  3. | Binary of string
  4. | Int of int
  5. | Large of bool * int list
  6. | Float of float
  7. | Char of char
  8. | String of string
  9. | Symbol of string
  10. | Array_start
  11. | Lparen
  12. | Rparen
  13. | Lbracket
  14. | Rbracket
  15. | Caret
  16. | Assign
  17. | Period
  18. | Semicolon
  19. | Bar
  20. | Colon
  21. | Eof
Sourcetype token = {
  1. kind : kind;
  2. start : int;
  3. stop : int;
}
Sourceexception Error of int * string
Sourceval min_small : int
Sourceval max_small : int
Sourceval tokenize : string -> token array
Sourceval to_string : kind -> string
Sourceval small_of_bytes : bool -> int list -> int option