Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Indicates that compilation was done without display of comments. WithoutDisp = iota // Indicates the production of remarks during compilation ... Remarks // ... or of warnings ... Warnings // ... or of error messages. Errors )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Face ¶
type Face struct { Facer // contains filtered or unexported fields }
func (*Face) CompComp ¶
Compiles a definition document, builds from this document a compiler, writes possibly comments and returns in res a value (equal to WithoutDisp, Remarks, Warnings or Errors) indicating the state of compilation. If Errors is returned, the compiler was not created. If another value that WithoutDisp is returned, a text of comments were written by the Face.String and Face.Ln methods. The definition text is read by Face.Read, with the help of Face.Pos and Face.SetPos. name returns the name of the document, as written after the first keyword BABEL.
type Facer ¶
type Facer interface { // Method for writing a string in the text of comments. String(s string) // Method for writing an end of line in the text of comments. Ln() // Maps an index text to a more lengthy one, replacing ^0, ^1, etc... occurrences by p's values, without any modification of the latter strings. Used to make explicit or to translate error messages. Map(index string, p ...string) string // Method for writing in the binary file; i: next integer to write. BinInt(i int32) // Method for reading the parsed text; ch is the next parsed character. Read() (ch rune, cLen int) // Returns the running position in the parsed text (any origin is allowed). Pos() int // Moves the running position in the parsed text to pos (the origin must be the same than for Pos). SetPos(pos int) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.