summaryrefslogtreecommitdiff
path: root/colm/fsmexec.cc
Commit message (Collapse)AuthorAgeFilesLines
* renamed toklen to tokpref and use it just for prefixAdrian Thurston2019-10-161-13/+13
| | | | | | | | 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.
* moved the original colm src dir to /colmAdrian Thurston2019-09-081-0/+220
|
* renamed colm dir to srcAdrian Thurston2013-06-081-223/+0
| | | | | | 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.
* various improvements supporting multiple parsers in one programAdrian Thurston2013-03-021-1/+1
| | | | | | Eliminated the init functions for the stream funcs. Using static initializers. Added function pointers to RuntimeData for fsmExec and calls to ctinput functions.
* removed tdLangEl from token instance, using version in token defAdrian Thurston2013-02-241-4/+4
|
* renamed TokenDef to TokenInstanceAdrian Thurston2013-02-231-1/+1
| | | | | 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.
* removed the fsmrun.h header, which was emptyAdrian Thurston2013-02-091-1/+0
|
* the eof marker is now a single bit rather than a pointerAdrian Thurston2013-02-071-1/+1
|
* keep tokend as an int, not pointerAdrian Thurston2013-02-041-10/+19
| | | | | 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).
* renamed FsmRun "have" to toklen, compute it in fsmExecuteAdrian Thurston2013-02-041-2/+9
|
* don't touch p in the FSM execution, wrecks the have computationAdrian Thurston2013-02-031-3/+3
|
* unification of stream typesAdrian Thurston2012-12-311-1/+1
| | | | | | 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.
* revert "moved 'colm' dir to 'src'"Adrian Thurston2012-08-011-0/+208
| | | | | | | | | | | 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.
* moved 'colm' dir to 'src'Adrian Thurston2012-07-011-208/+0
|
* improvements to ignore handling in the parserAdrian Thurston2012-05-221-4/+4
| | | | | | | | | | | | 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.
* Copyright notice updating.Adrian Thurston2012-01-181-1/+1
|
* Some cleanup of the main function. Just initColm, initProgram, runProgram,Adrian Thurston2011-10-221-1/+1
| | | | clearProgram. refs #328.
* Need to collect tokens and nonterminals at parse time so we can declare theAdrian Thurston2011-06-151-1/+1
| | | | language elements in the declarating pass.
* Moved config.h.in away to defs.h.in, need to rely on autoheader to generate it.Adrian Thurston2011-05-291-0/+1
| | | | refs #296
* .cpp files to .ccAdrian Thurston2011-05-261-0/+207