summaryrefslogtreecommitdiff
path: root/src/libfsm
Commit message (Collapse)AuthorAgeFilesLines
* include an extern C function in libfsm so we can use AC_CHECK_LIBHEADmasterAdrian Thurston2023-03-121-0/+2
|
* generate a check for EOF if there are from-state actionsAdrian Thurston2021-12-286-7/+7
| | | | | | | | | From-state actions now execute on EOF, but we don't check for their presence when deciding if we should test against EOF. This led to from-state actions executing only if other conditions necessitating EOF-testing are present. Added the check. refs adrian-thurston/ragel#80
* can remove the now empty allocgen.ccAdrian Thurston2021-11-071-1/+1
|
* remaining parts of common.cc moved over to ragelAdrian Thurston2021-11-074-338/+16
| | | | This includes output filter, file name functions, and line directive generation
* moved HostLang type and makeCodeGen funcs to ragelAdrian Thurston2021-11-077-137/+22
|
* moved the findAlphType code over to ragelAdrian Thurston2021-11-074-54/+0
|
* moved the C and ASM host types over to ragelAdrian Thurston2021-11-072-81/+0
|
* moved writeStatement into InputData in ragelAdrian Thurston2021-11-072-92/+0
| | | | | | Write statement belongs in ragel, but can't yet move out CodeGenData. It's at the base of many codegen classes that will live in colm. The functionality here needs to be lifted up out of the base.
* C codegen: use the 'signed' prefix when specifying the size of the signed typesAdrian Thurston2021-11-061-4/+4
|
* C codegen: use SCHAR_MIN and SCHAR_MAX for signed char host typeAdrian Thurston2021-11-061-1/+1
|
* C codegen: decide char signedness based on value of CHAR_MINAdrian Thurston2021-11-061-12/+12
| | | | | | | | | Decide signedness of "char" on at runtime (probably compile time) using a check on CHAR_MIN. This should work with cross compiling setups. With this approach, if you plan to use "char" on ARM you cannot literally specify outside the range 0-127 using decimal/hex. If you need that you can use "signed char" or "unsigned char".
* allow the base expression in deref and offset to be an expressionAdrian Thurston2021-09-212-1/+14
| | | | | | Previously allowed only identifier as the base. This is necessary to use the generated DATA() as the base in these expressions, which can be modified by access and therefore must be an expression.
* include version in libfsm library install pathAdrian Thurston2020-12-231-1/+1
|
* lift all source code into src/ dirinto-srcAdrian Thurston2020-10-1874-0/+29915