Commit Graph

60 Commits (d46b8a84658c546a13d4d30225bc3f5bdf77fcab)

Author SHA1 Message Date
Torsten Paul d46b8a8465 Handle UTF-8 multi-byte characters in the lexer. 2014-06-23 23:21:16 +02:00
Torsten Paul 1a2fcc0559 Add support for \x \u and \U escape sequences.
For all escape sequences the 0 byte is illegal and converted to a space.

\x supports only the range from 0x01 to 0x7F as the values greater or
equal to 0x80 could produce illegal UTF-8 sequences.

\u allows to specify unicode codepoints with exactly 4 hex digits.

\U allows to specify unicode codepoints with exactly 6 hex digits.
2014-06-23 23:21:16 +02:00
Marius Kintel ca3ff7cf66 Related to #737 - allow for nbsp (0xc2a0) characters on the cmd-line 2014-05-29 18:22:32 -04:00
Oskar Linde b611ed5eac Add list-comprehensions 2014-05-03 17:24:44 +02:00
Oskar Linde ed3041c551 Add a let() expression 2014-05-03 11:19:30 +02:00
Torsten Paul 7922c3dbc9 Catch exceptions caused by parsing invalid double values (fixes #706). 2014-03-22 23:46:34 +01:00
Marius Kintel 33e873d8da Changed compile GUI logic to properly handler automatic reload on cascading changes 2013-05-28 01:25:03 -04:00
Marius Kintel 0967a26bff Support locating previously missing modules. yet another part of #364 2013-05-26 21:55:00 -04:00
Marius Kintel 93117c0d02 Final fix of #364 - includepaths leaked to subsequent pathless includes 2013-05-26 17:03:52 -04:00
Marius Kintel ce11fb2ea2 Fixed remaining issue. We now correctly detect removal of files as changes. Removed temporary debug output. Fixes #364 2013-05-26 15:08:23 -04:00
Marius Kintel cc6ac10e47 Search paths when looking for previously missing includes. Should provide most of what's needed for #364 2013-05-25 17:45:13 -04:00
Don Bright 8a83e334ab try to refactor the 'is_modified( includefile )' code 2013-05-19 23:31:18 -05:00
Don Bright 77a598ab72 throw warning when include file disappears. refactoring. 2013-05-19 18:04:51 -05:00
Don Bright 24e726fb58 first refactoring towards fixing issue364 2013-05-19 15:14:05 -05:00
Marius Kintel 9a297ecee5 Refactoring: Split out FileModule from Module, Added LocalScope renamed some confusing 'evaluate' methods to 'instantiate', added FileContext (not yet used) 2013-04-26 17:45:03 -04:00
Marius Kintel 58bd9c9e3f Cleaned up argument list handling, related to #116 2013-04-18 18:34:14 -04:00
don bright d5019a964e deal with test suite issues under mingw-cross compile and wine 2013-02-13 22:55:19 -06:00
Marius Kintel b7cc740b78 Detect circular includes. Probably the final commit for #75 2012-10-23 20:41:50 -04:00
don bright 47a06c074f detect flaws in 'use' and 'include' statements. make locate_file consider directories as 'non files'. 2012-08-18 18:38:24 +02:00
Marius Kintel 22c5f37424 Search for libraries from a list of paths. Preparations for issue #125 2012-06-24 16:29:28 +02:00
Marius Kintel c869c6e6b2 Remove superfluous debug output. Fixes #103 2012-03-29 02:04:47 +02:00
Marius Kintel 2316127e62 Handle include dependencies 2012-02-17 23:05:36 +01:00
Marius Kintel caa6272fe8 Don't try to handle non-existing use'd libraries 2012-02-15 01:32:37 +01:00
Marius Kintel b9d218e137 Initial implementation of ModuleCache and dependency tracking of used modules 2012-02-15 01:32:37 +01:00
Marius Kintel 1ce1b88249 bugfix: Nested use and included of files inside libraries was broken. Fixes #78 2012-02-02 23:11:54 +01:00
Marius Kintel 2def247b1b Minor refactor: use set/get_librarydir() to access global variable 2012-02-02 22:50:51 +01:00
Marius Kintel eff1f7f8c9 Ported printutils away from Qt 2012-01-25 03:11:12 +01:00
donb 65a1c9cf6c add boosty.h for compatability with boost <1.44 2012-01-14 05:02:15 +01:00
Marius Kintel 10701f7158 Added absolute path tests to include and use tests, fixed bug using absolute paths in use and include 2012-01-14 03:25:09 +01:00
Marius Kintel c469587239 Windows compile fix: Convert away from wchar. prefix conditions with cond_ to not pollute the global namespace with generic symbols 2012-01-09 16:51:38 +01:00
Marius Kintel fdce8d15fc Merge branch 'master' into boost_filesystem
Conflicts:
	boost.pri
	src/lexer.l
	tests/CMakeLists.txt
2012-01-04 23:07:32 +01:00
Marius Kintel ba8aa515d1 Disabled the old include syntax; i.e. without the include keyword 2012-01-04 19:03:33 +01:00
Marius Kintel bafbc89aa0 Ported lexer code from QFile to boost filesystem 2011-12-24 23:08:38 +01:00
Marius Kintel 0ab51d2d23 Extracted librarydir initialization to separate function 2011-12-24 22:02:37 +01:00
Marius Kintel 4251775d3b bugfix: Make include also search librarydir 2011-12-12 21:53:21 +01:00
Marius Kintel 04bc3ed890 Added support for parsing numbers in scientific notation, e.g. to allow roundtripping of written csg files as well as parsing of externally generated scad files 2011-11-05 16:22:48 +01:00
Marius Kintel e6ec07a08d bugfix: filenames with spaces caused a syntax error with the use keyword (fixes #31) 2011-10-31 21:36:55 +01:00
Don Bright 5f58255bcf integrate Brad Pitcher's cross compile linux->win32-mingw qmake stuff 2011-10-25 19:10:28 -05:00
Marius Kintel b087e68e54 Don't leave files open on parse errors 2011-09-11 01:53:25 +02:00
Marius Kintel 821c7df1fe Extracted handle_dep() to separate source file 2011-09-04 00:03:16 +02:00
Marius Kintel 2af5648eda Merge branch 'master' into visitor
Conflicts:
	src/OpenCSGRenderer.cc
	src/csgops.cc
	src/mainwin.cc
	src/polyset.cc
	src/projection.cc
2011-08-04 04:02:42 +02:00
don bright 8937beb0d5 prevent linker error LNK1120 in windows 2011-07-20 21:06:18 -05:00
Marius Kintel f90e60fadb Bugfix: Include of absolute paths to files in the root path weren't parsed correctly; caused a '/' character to be written to stdout 2011-04-30 11:12:06 -04:00
meta 4ac3af2f92 compile fixes for parser and lexer under MSVC 2011-01-24 23:58:19 +01:00
Marius Kintel 91c640fb5e Copyright updates 2011-01-21 02:21:09 +01:00
Giles Bathgate 052f8bc620 Fix for when the included file doesn't exist. Needed because we will never get an EOF, and so never pop the stack. 2010-12-11 12:41:23 +00:00
Giles Bathgate d98e398ec1 Removed some unneeded cruft. 2010-12-09 12:18:24 +00:00
Giles Bathgate 5ef31011f3 Added support for nested includes. 2010-12-03 17:43:00 +00:00
Giles Bathgate ff249dfefb Improvement to lexing of strings don't use QString.replace, use the power of flex instead. 2010-11-30 20:44:05 +00:00
Giles Bathgate e2ae2a714d This adds support for escape sequences in strings e.g \t \n \r \" \\ 2010-11-17 21:27:10 +00:00