Commit graph

83 commits

Author SHA1 Message Date
Eric Swanson
92098e3784
grammar: report trailing commas in dictionary, struct, array initializer lists (#252) 2020-08-29 02:52:40 -07:00
Eric Swanson
d456cc98eb
Update compiler grammar (#238)
* Update grammar
  - add '=' to grammar so that we can report appropriate errors
  - add elvis ?: operator
  - add foreachIterableExpression to match old compiler (which only allows certain expressions)
  - allow both byref and unused on the same function parameter
  - rename methodCall -> functionCall
  - rename memberCall -> methodCall
  - add named parser rule for functionReference
  - move everything that isn't expression(s) with operators into primary
    - expression is now just the left-recursive rules and prefix operators
  - add named parser rules for struct, dictionary, error, array initialization
  - remove special-case for named parameters with := from function call argument, because it is ambiguous with assignment
  - Moved array access, object member access, and object method calls to navigationSuffix

* Regen grammar
2020-08-21 01:53:42 -07:00
Fernando Rozenblit
f3c3dbd0cf
Remove unused library and header (#218) 2020-08-14 21:38:02 +02:00
turleypol
ad3644de23
Antlr and Curl build step fix (#213)
* force antlr to always build in release node also for multiconfigs
set the correct c++ runtime flag for clang on windows
fixed lib path for antlr
in CI also test msbuild and different modes then release

* cache antlr in nopch and force recompile in pch build

* force release mode also for curl
2020-08-13 15:16:36 +02:00
turleypol
62fa91ec8e
Antlr external project (#204)
Build antlr as external project inside of lib/antlr.
Cache in Ci the antlr folder to speed up compilation times.

* replace ERROR with ANTLR_ERROR, fix clang build
* added missing define needed to link on windows
* different lib name with clang on windows
2020-08-10 14:53:29 -07:00
Eric Swanson
ed033fc6e4 bscript uses antlr library, and compiles the lexer and parser
Ignore ANTLR grammar plugin (idea) generated files
2020-08-03 19:39:29 -07:00
Eric Swanson
4834aee9d9 escript_grammar.cmake from Turley
Incorporate cmake/escript_grammar.cmake

Adjust generated EscriptParser.cpp: Need namespace for TokenStream in constructor
2020-07-26 23:42:33 -07:00
Eric Swanson
c0880e5e46 generated lib/EscriptGrammar from grammar 2020-07-26 21:28:02 -07:00
Eric Swanson
bc95e2e53b
EscriptGrammar from escript-antlr repo commit ef133e3a3a3184936e93493c863b7b995cdf4737 (#162) 2020-07-25 12:17:42 -07:00
Eric Swanson
26aa8a01fa Incorporate ANTLR into the cmake build.
Adjust ANTLR runtime source code: Replace ERROR with ANTLR_ERROR because it clashes with a longstanding windows header #define.
2020-07-17 20:52:40 -07:00
Eric Swanson
3b7bed8d60 Add ANTLR runtime source code as lib/antlr: Add runtime/Cpp/runtime/src directory from https://github.com/antlr/antlr4/archive/4.8.tar.gz 2020-06-27 20:46:17 -07:00
turleypol
39093cdbbe fix compile error with clang 2020-01-13 11:13:35 +01:00
turleypol
7db59e0ab8 Support for github actions
with artefacts for all platforms
fixed VS2019 build for format lib
2019-12-26 21:43:41 +01:00
turleypol
af5d3f38d7 utf8 work in progress 2018-06-25 19:30:59 +02:00
turleypol
6cb38c16d5 updated zlib for windows 2018-06-24 11:41:30 +02:00
turleypol
30dd7bc2d3 removed old boost archive 2018-06-24 11:15:49 +02:00
turleypol
fbc9a78cda updated Boost to 1.67 2018-06-24 11:14:51 +02:00
turleypol
7f9219afbd Curl should now build correctly on windows
Removed more visual studio prj files and removed some deprecated files
2018-06-23 19:19:27 +02:00
turleypol
aa6e8f44bf removed all visual studio files 2018-06-17 18:20:06 +02:00
Fernando Rozenblit
83c4ca59af Merge branch 'master' into feature/uopreading 2018-02-26 23:16:32 +01:00
turleypol
3afc41241b
CMake on windows (#48)
CMake can now also be used for windows
2018-02-24 22:34:55 +01:00
Fernando Rozenblit
9f047e3adb Added kaitai runtime for cpp 2018-02-19 18:30:19 +01:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
Kevin Eady
a28cd9c42c Initial implementation of json 2018-01-05 20:40:14 +01:00
GIB
2385381060
Update prepare_extlibs.bat
Update prepare_extlibs.bat to force vs2017 dev cmd to use current working directory.
2018-01-03 20:48:38 +08:00
turley
af863461dd Added dedicated VS2017 project 2018-01-03 12:09:36 +01:00
turley
c0db8527ef reworked buildDistWin
find VS installation with vswhere (local if no 2017 is installed)
dont build and link against debug version of curl
automatically insert git revision if git is in path
2018-01-03 10:07:42 +01:00
turleypol
8d7e7fcfb9 Linux build curl
placed boost also as extra cmake step
removed some outdated files
2017-12-31 18:34:12 +01:00
Kevin Eady
5063a20428 Moved building of curl into prepare_extlibs batch file. 2017-12-30 21:46:42 +01:00
Kevin Eady
ef5562f25c Initial implementation of libcurl support 2017-12-27 21:46:13 +01:00
turley
0e5d57e994 Added missing zlib files to be able to uncompress on windows platform 2017-09-10 14:14:53 +02:00
Fernando Rozenblit
0f66818b9e Update boost to version 1.63 2017-02-27 23:53:15 +01:00
turley
9094b3bd8c Optimized los check by introducing caching
added Google Benchmark lib (currently linux only)
compile with ENABLE_BENCHMARK see bin-build/build_tools.sh
2016-12-18 12:48:35 +01:00
turley
b375cfb7bc Merge branch 'master' of https://github.com/polserver/polserver
* 'master' of https://github.com/polserver/polserver:
  update gitignore for boost
2016-02-12 00:07:03 +01:00
turley
764e983d98 more lineendings
again blame bodom
2016-02-12 00:06:07 +01:00
turley
4991647c0e update gitignore for boost 2016-02-11 23:52:24 +01:00
turley
ed7b16b233 normalized lineendings 2016-02-11 22:54:43 +01:00
turley
6de0c7e1c0 added define to use boost regex (older gcc has bug in std version)
added define for the git revision and centralized others
2016-01-19 21:04:40 +01:00
turley
3c8c9f5c28 fixed pessimizing move
disabled testrun for clang
2015-12-27 22:48:51 +01:00
Thomas Volkert
8c3c5f760a Fixed Windows build and several minor fixes 2015-11-18 23:45:16 +01:00
Thomas Volkert
0a0d1974a8 Fixed Windows build for clib 2015-11-11 00:34:18 +01:00
Thomas Volkert
38800776a6 Renamed CMakeConfig.txt to CMakeEnvironment.txt 2015-11-01 17:08:04 +01:00
Thomas Volkert
fb9eb817df Removed path references from build system,
Make sure that the binary output is located in the correct directory
2015-10-31 14:39:45 +01:00
Thomas Volkert
aa193cdd75 Use tinyxml as separate lib 2015-09-21 23:37:10 +02:00
turley
0345fafb96 added gitignore for libs 2014-08-12 11:53:30 +02:00
turley
8002e7d683 addd gitignore for boost files 2014-08-12 11:37:49 +02:00
frozenblit
2b3939e19a Disabled warnings from zlib in VS 2014-06-11 19:18:47 +00:00
frozenblit
adee975c13 Disabled a warning in StackWalker.cpp 2014-06-11 17:45:44 +00:00
turley
5f53887d9c updated to new format lib version, seems to also fix a problem under windows where it could crash. 2014-04-25 18:12:02 +00:00
turley
9acf8fa43c added StackWalker lib for complete backtraces under windows
simplified some loops
fixed a crash on char death with non moveable robe layer items
2014-04-25 09:30:50 +00:00