Pep and Nom
home |
documentation |
download |
blog |
all blog posts
-
index.html
-
This folder contains documentation about the commands that
are available in the “Nom” language.
-
nom.add.html
-
add or appends the given text to the end of the workspace
buffer.
-
nom.aminus.html
-
Decrement the pep counter register by one.
-
nom.aplus.html
-
Increment the pep accumulator register by one.
-
nom.cap.html
-
The cap command makes the text in the workspace buffer
capital case
-
nom.clear.html
-
clear or delete the text in the workspace buffer.
-
nom.clip.html
-
clip one character from the end
of the 'workspace' buffer
(and send it into the void).
-
nom.clop.html
-
clop one character from the beginning of the workspace buffer.
-
nom.commands.html
-
An overview and of the commands that are available in the “Nom” language.
-
nom.count.html
-
The count command adds the value of the counter variable to the end of the
workspace buffer.
-
nom.delim.html
-
The delim command changes the nom parse token delimiter
to the given character.
-
nom.escape.html
-
The escape command puts an escape character in front of all
occurences of the given character in the workspace buffer.
-
nom.get.html
-
The get command obtains the value in the current tape cell
and adds it (appends it) to the end of the workspace buffer.
-
nom.go.html
-
go to the tape cell marked with the given name.
-
nom.lines.html
-
Append the number of lines read to the workspace buffer
-
nom.lower.html
-
Make all text in the workspace buffer lower case.
-
nom.mark.html
-
Mark the current tape cell with the given name.
-
nom.minusminus.html
-
Decrement the tape pointer by one.
-
nom.nochars.html
-
Set the automatic character counter register to zero (i.e. to nochars*)
-
nom.nolines.html
-
Sets the line number character counter to zero (i.e to nolines )
-
nom.plusplus.html
-
Increment the tape pointer by one .
-
nom.pop.html
-
pop a parse token off the stack into the front of the workspace buffer
-
nom.print.html
-
print the contents of the workspace buffer to stdout
-
nom.push.html
-
This pushes a grammar token onto the stack
-
nom.put.html
-
The put command places the entire contents of the workspace into the current
tape cell, overwriting any previous value which that cell might have
had. The put command takes no parameters and is written ...
-
nom.read.html
-
read one character from the input-stream.
-
nom.reparse.html
-
Jump to the parse> label in the script.
-
nom.replace.html
-
This command replaces one string with another in the workspace . The
replace command is useful for indenting blocks of text during formatting
operations, among other things. The replace command only replaces plain text
strings, not regular expression patterns.
-
nom.restart.html
-
restart the script from the beginning
-
nom.stack.html
-
Push the entire workspace onto the stack regardless of token
delimiters.
-
nom.swap.html
-
Swap the contents of the workspace buffer with the current tape cell
-
nom.unescape.html
-
unescape chars
-
nom.unstack.html
-
Pop the entire stack as a prefix into the workspace.
-
nom.until.html
-
Read the input stream until the given text is encountered, or until
the end of the input stream (EOF) is encountered.
-
nom.upper.html
-
The upper command makes the text in the workspace buffer
all upper case .
-
nom.whilenot.html
-
The whilenot command reads into the workspace buffer characters from
the input stream while the peep buffer is not a certain character or
characters. This is a “tokenizing” or “lexing” command and allows the input
stream to be parsed up to a certain character without reading that character.
-
nom.while.html
-
Read the input stream while the peep register contains the given
character class
-
nom.writefile.html
-
The writefile command writes the contents of the
workspace buffer to the given file.
-
nom.write.html
-
sav.pp
-
nom.zero.html
-
Set the pep accumulator register to zero