module Scanner: sig
.. end
The general lexographic scanner for Gamma
The general lexographic scanner for Gamma
val implode : char list -> string
Build a string from a list of characters
from: http://caml.inria.fr/mantis/view.php?id=5367
Returns A string of the characters in the list glued together
Parameters: |
l |
: |
char list
The list to be glued
|
|
val explode : string -> char list
Explode a string into a list of characters
Returns A list of the characters in the string in order
Parameters: |
s |
: |
string
The string to be exploded
|
|
val spacecounter : char -> int
A generic function to count the character-spaces of a character. (I.e. weight tabs more heavily)
val spacecount : string -> int
Count the space width of a string using the spacecounter function
Returns The effective width of the string when rendered
Parameters: |
s |
: |
string
The string to be evaluated
|
|
val count_lines : string -> unit
Count the lines in a series of vertical spacing characters.
Please note that as of now, it is not intelligent enough to understand
that \n\r should be counted as one. It seems like an oversized-amount
of work for something we will never effectively need.
Parameters: |
v |
: |
string
The vertical spacing series string
|
|
val lexfail : string -> 'a
Gracefully tell the programmer that they done goofed
Parameters: |
msg |
: |
string
The descriptive error message to convey to the programmer
|
|
val __ocaml_lex_tables : Lexing.lex_tables
val token : Lexing.lexbuf -> Parser.token
val __ocaml_lex_token_rec : Lexing.lexbuf -> int -> Parser.token
Parameters: |
lexbuf |
: |
Lexing.lexbuf
|
__ocaml_lex_state |
: |
int
|
|
: int -> Lexing.lexbuf -> Parser.token
Parameters: |
level |
: |
int
|
lexbuf |
: |
Lexing.lexbuf
|
|
: int -> Lexing.lexbuf -> int -> Parser.token
Parameters: |
level |
: |
int
|
lexbuf |
: |
Lexing.lexbuf
|
__ocaml_lex_state |
: |
int
|
|
val stringlit : char list -> Lexing.lexbuf -> Parser.token
Parameters: |
chars |
: |
char list
|
lexbuf |
: |
Lexing.lexbuf
|
|
val __ocaml_lex_stringlit_rec : char list -> Lexing.lexbuf -> int -> Parser.token
Parameters: |
chars |
: |
char list
|
lexbuf |
: |
Lexing.lexbuf
|
__ocaml_lex_state |
: |
int
|
|
val escapechar : char list -> Lexing.lexbuf -> Parser.token
Parameters: |
chars |
: |
char list
|
lexbuf |
: |
Lexing.lexbuf
|
|
val __ocaml_lex_escapechar_rec : char list -> Lexing.lexbuf -> int -> Parser.token
Parameters: |
chars |
: |
char list
|
lexbuf |
: |
Lexing.lexbuf
|
__ocaml_lex_state |
: |
int
|
|