summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* specify the min/max for char for both signed and unsignedarm-host-typesAdrian Thurston2021-10-301-1/+1
|
* use the 'signed' prefix when specifying the size of the signed typesAdrian Thurston2021-10-301-4/+4
|
* C char type: decide signedness of char based on CHAR_MINAdrian Thurston2021-10-301-12/+12
| | | | | | | Previously had char fixed to signed char, this is not useful on ARM as it does not align with the host type. Instead, decide at runtime (or probably compile time) if char is signed or not. Also use CHAR_MIN and CHAR_MAX, for the min/max.
* need to use Bytes.to_string on buffer objectsAdrian Thurston2021-09-091-2/+2
| | | | | Now need to convert the buffer to a string before passing to functions that expect string.
* use -no-pie for asm buildAdrian Thurston2021-09-092-2/+2
| | | | | The -fPIE option is now the default and it needs to be turned off when making simple progs that use .rodata and .text.
* src/codegen.cc now lives in colmAdrian Thurston2021-09-091-1203/+0
|
* D language stdio has movedAdrian Thurston2021-09-095-4/+5
|
* added a dockerfile for testing a build from the webAdrian Thurston2021-02-152-11/+36
|
* updated language flags, catch abortcompile throw in non-ragel progs7.0.4Adrian Thurston2021-02-151-45/+51
|
* version bump to 7.0.4Adrian Thurston2021-02-152-9/+7
| | | | Moved make of src/include/ragel to configure script. Expect colm 0.14.7.
* expect colm version 0.14.6 and version bump ragel to 7.0.37.0.3Adrian Thurston2021-01-181-2/+2
| | | | This version of colm includes a critical fix for big-endian system. Fixes #61.
* expect colm 0.14.5 and version bump to 7.0.27.0.2Adrian Thurston2021-01-031-3/+3
| | | | | Latest colm includes bugfixes for refcounting, which fixes a ragel issue with includes #58.
* removed COLM_VERSION and RAGEL_VERSIONAdrian Thurston2020-12-233-15/+6
| | | | also expect colm 0.14.4, the latest release
* removed accidental commit of ragel/.exrc7.0.1Adrian Thurston2020-11-251-28/+0
|
* version bump to 7.0.1Adrian Thurston2020-11-251-6/+6
| | | | Switching to major.minor.point format and will build some momentum around that.
* turn on loop labels for rustAdrian Thurston2020-10-131-1/+1
|
* fixed the distAdrian Thurston2020-10-1212-14/+12
| | | | Some codegen files have moved to colm, where they will be reused.
* fixes for ruby alphtypeAdrian Thurston2020-10-121-1/+1
| | | | Need to use unsigned min/max fields for unsigned types. Fixed size.
* fixed ragel CIAdrian Thurston2020-10-122-8/+15
| | | | | | * Checkout, build and install colm first, use when configuring ragel. * Include test dir in SUBDIRS of main Makefile. * Replaced colm-suite-* paths with ragel-*.
* merge pull request #52 from JunHe77/wrong_charAdrian Thurston2020-10-106-7/+7
|\ | | | | common: Fix ambiguous CHAR_MIN/MAX definition
| * common: Fix ambiguous CHAR_MIN/MAX definitionJun He2020-09-176-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | According to C/C++ standards, char is implementation-defined whether it could hold negative values. See: http://www.cplusplus.com/reference/climits/ In ragel char is treated as a signed value with range as [-128, 127]. This means that the CHAR_MIN/CHAR_MAX should be replaced with a more accurate definition to align across different systems and library implementations. Change-Id: I10668f2d2550b603101dc68f4cc1121035022abd Signed-off-by: Jun He <jun.he@linaro.org>
* | the primary rust type u8 is unsigned, specify it as suchAdrian Thurston2020-10-101-1/+1
|/
* updated colm exptected version and fixed some makefile pathsAdrian Thurston2020-06-286-22/+22
|
* use libcolm and libfsm .la files when linkingAdrian Thurston2020-04-1314-156/+52
|
* longest-match struct split between libfsm and here in ragelAdrian Thurston2020-03-277-203/+155
| | | | | Moved param check code to mainline as part of trimming down common file. NameInst structs live in libfsm and can be removed from ragel.
* removal of libfsm files and adjusting includes filesAdrian Thurston2020-03-1655-12469/+15
|
* moved ragel/* to src/Adrian Thurston2020-03-14244-3229/+221
|
* removed the colm tests, source runtests from colm packageAdrian Thurston2020-03-145601-2216661/+16
|
* ragel is again forked from colm, leaving behind libfsm and rlhcAdrian Thurston2020-03-08171-76135/+128
| | | | | | Plan is to give colm language-independent code generation features taken from ragel. We first merged ragel and colm, and then forked ragel off, leaving behind what will go into colm. Ragel gets a dependency on the colm package.
* test suite: various updates to allow running on OSXAdrian Thurston2020-03-078-10/+16
|
* Merge pull request #107 from computerquip/standalone-executablesAdrian D. Thurston2020-02-243-3/+32
|\ | | | | add flag to support standalone executables
| * add flag to support standalone executablesZachary Lund2020-02-153-3/+32
|/
* osx linker will not accept -rpath=X, must use a space (achieved with a comma)Adrian Thurston2020-01-311-1/+1
|
* eliminate usage of --transform from tar -cf commandAdrian Thurston2020-01-311-2/+3
| | | | | | | | Rather than using the --transform argument to tar to remove the .pack extension from the individual files when creating the tarball, simply rename the files after unpacking. The individual files will then live in the tarball with the .pack extension, but that's okay. The --transform argument is not available on osx tar.
* added config.h.in~ to gitignoreAdrian Thurston2020-01-311-0/+1
|
* use glibtoolize on darwinAdrian Thurston2020-01-311-1/+9
|
* colm: modified calling convention for colm wrapperAdrian Thurston2020-01-0918-177/+194
| | | | | | | | Changed the calling convention for colm-wrap (formerly colm-pack) so that we can substitute the colm program, once packing is implemented there. Makes the new wrapper args compatible with the existing args for the colm binary. refs #85
* ragel: don't send \n before closing }%%Adrian Thurston2020-01-0913-13/+13
| | | | | Sending a newline means a missing ; results in the error getting attributed to the next line. refs #103
* colm: use a string's location (if present) when pushing to an inputAdrian Thurston2020-01-096-44/+46
| | | | refs #103
* colm: added outdent check on literal concatenationsAdrian Thurston2020-01-092-45/+97
| | | | | | | | | | | | | | | | The colm language has an ambiguity between literal concatenations and distinct statements, where the first ends in string/accum/cons/pat and the second is a bare send. For example: match P "a b c d" "e f g h" Warn on some of these by checking for an outdent (relative to the first component) on top level concatenations. If the user does not outdent between separate intended statements we cannot help with this check. refs #95
* colm: eliminated the range-crosses-zero hack needed when alphtype was signedAdrian Thurston2020-01-082-29/+4
| | | | | | | In 900189a4d23f0180970f22479f44377973a2d330 we added an option to hack the parsing of hex literals to allow ranges that cross zero. This was necessary when alphtype was signed. Moving to an unsigned type eliminates the need for this.
* colm: using an unsigned char as alph type in scannerAdrian Thurston2020-01-0815-96/+122
| | | | | | | | | | | | | Switching to unsigned so we can reference chars with the high bit set in the way that is common when discussing utf and unicode: using hex chars. Negative values are really uncomfortable and don't lend themselves to specifying ranges. This change is for the parser and stream/input code only. The collected tree data still uses char, which makes it convenient to extract the data from a top-down or bottom-up load. If we change the tree type we need to cast the pointers all over the loading code. refs #104 refs #97 refs #81
* colm: removed flags field from the kid structAdrian Thurston2020-01-082-7/+9
| | | | | We eliminated the use of this field some time ago, but never removed the field from the struct.
* suppress unused variable warning for when --disable-debug is usedAdrian Thurston2020-01-071-3/+13
|
* eliminated unused var warning when sizeof(int) != sizeof(long)Adrian Thurston2020-01-051-0/+2
| | | | refs #97
* fixed the variable capture in read_word on 32 bit systemsAdrian Thurston2020-01-051-6/+6
| | | | refs #97
* some function renaming and old code removal to elim warningsAdrian Thurston2020-01-054-345/+5
| | | | refs #97
* merge branch 'literal-concatenation'Adrian Thurston2020-01-032-34/+51
|\ | | | | | | | | Pushing forward with the literal-concatenation patch. This brings back lists of literals strings at the top level of strings, constructors and patterns.
| * colm: testing a new grammar where string concatenations are allowedAdrian Thurston2019-12-282-34/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit brings back string concatenations in match/cons/string literals at the top level. It does not bring back concatenation of [] lists. For example, you can write: match Foo "hi "there BUT NOT: match Foo [Hi] [There] The concatenation (of both forms) was removed when bare sends were added, due to the ambiguity created. However, removing these concatenations has proven quite annoying. This change re-introduces the ambiguity, which maybe we should do something about by detecting when it is likely via mis-alignments of the strings, or making some other change to sends. refs #95
* | colm: folding some long lines in input and stream implementationsAdrian Thurston2020-01-032-35/+70
| |