| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Had an interdependency between toklen and tokend. Was setting one from the
other and vice versa. Cleaned this up by renaming toklen to tokpref and using
it just to store the number of characters already matched before the current
buffer block. Tokend stays as tokend (in the ragel sense) and is used by the
parse to extract the match.
|
| |
|
|
|
|
|
|
| |
Renamed 'colm' dir to 'src'. To allow colm to work out of the installed
location or the source tree, while the installed includes reference
<colm/include.h>, a symlink to '..' is placed at src/include/colm.
|
|
|
|
|
|
| |
Eliminated the init functions for the stream funcs. Using static initializers.
Added function pointers to RuntimeData for fsmExec and calls to ctinput
functions.
|
| |
|
|
|
|
|
| |
Will add back token def as the thing the user declares. Instances go into
regions and a def can cause more than one instance to be created.
|
| |
|
| |
|
|
|
|
|
| |
Since we are no longer maintaining a contiguous token buffer during scanning we
cannot use a pointer for tokend. Turn it into an offset (toklen).
|
| |
|
| |
|
|
|
|
|
|
| |
Added function pointers for the stream functions called the parser runtime. Now
using StreamFuncs as the interface to the stream. Renamed both InputStream and
SourceStream to StreamImpl. This takes us closer to a unified stream type.
|
|
|
|
|
|
|
|
|
|
|
| |
Colm includes a library component with headers installed to a private dir
inside include: $prefix/include/colm. We need our headers to reference each
other using this colm prefix. This needs to be true for compiling our source
and also for compiling external programs. It is conventient to have all the
source in a directory called colm and then to use -I <source-root> when
building colm. We use $prefix/include when building external programs.
This reverts commit 247904a84430b8c9151fa6afb68f01b60afb92c9.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Every region now also has a duplicate scanning region that is only for tokens.
The duplicate ignores and tokens generate the original tokens through a
TokenDef ignore mechanism.
Can turn off post ignore parsing and pre-igore parsing on a token-by-token
basis. Probably want to move it into the productions and specify it there.
Currently don't have a specification mechanism.
If an ignore is a post-token ignore it is not right-attached.
|
| |
|
|
|
|
| |
clearProgram. refs #328.
|
|
|
|
| |
language elements in the declarating pass.
|
|
|
|
| |
refs #296
|
|
|