- 07 Aug, 2022 3 commits
-
-
LAWALL Julia authored
-
LAWALL Julia authored
-
LAWALL Julia authored
operators as a sequence of tokens, rather than using a hack to make them into a single token; only used in practice for function names
-
- 31 Jul, 2022 5 commits
-
-
LAWALL Julia authored
-
LAWALL Julia authored
-
LAWALL Julia authored
adding template type AST, not able to be used in simple_type, some hacks for structures and function headers
-
LAWALL Julia authored
-
LAWALL Julia authored
-
- 25 Jul, 2022 8 commits
-
-
LAWALL Julia authored
-
Julia Lawall authored
Replace < > by special tokens so they can be parsed without concern for less than and greater than operators. Add parsing of templates before top level declarations and template instantations as primary expressions.
-
Julia Lawall authored
-
Julia Lawall authored
-
Julia Lawall authored
-
Now macro_argument_list can contain empty arguments, as is sometimes useful for macros. For example FOO(,3,4). Now argument_list can be empty, reducing code duplication in the parser.
-
Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com>
-
* e47fa520 - Added class in the lexer and unparse cocci, as well as fixed a logical mistkae in parser_c - Tathagata Roy * e3e22da4 - Removed newlines while printing - Tathagata Roy * f6e0c6c3 - made comma_opt empty in case the enumerator list was empty - Tathagata Roy * 17d68f02 - Changed assertion from previous code - Tathagata Roy * 22579609 - enum_key and ident work, and removed some wrong code from prettyprint - Tathagata Roy * f7c112db - Added enum in cocci and C, and wrote partial code for engine/ - Tathagata Roy * 57010c9b - Changed the definition of EnumName to include class - Tathagata Roy * 07f9c05a - Added Enum to cocci - Tathagata Roy * 443ef9a5 - Fixed all conflicts - Tathagata Roy * 5b5e0990 - bitfield problems persist, will fix in the next commit - Tathagata Roy * 8c02afbd - Defined EnumName and EnumDef - Tathagata Roy * ca82ea0e - Resolved all conflicts in parser_cocci_menhir.mly file - Tathagata Roy * e6ac4359 - fixed some conflicts in rebasing - Tathagata Roy * fdb66ef3 - added enum definitions and conflict-laden menhir file - Tathagata Roy
-
- 23 Jul, 2022 2 commits
-
-
Julia Lawall authored
Not clear what this was supposed to test, but add a virtual variable initialization so that it doesn't cause an incorrect test.
-
Julia Lawall authored
-
- 22 Jul, 2022 1 commit
-
-
Julia Lawall authored
-
- 21 Jul, 2022 3 commits
-
-
Michele Martone authored
Signed-off-by:
Michele Martone <michelemartone@users.sourceforge.net>
-
Michele Martone authored
Signed-off-by:
Michele Martone <michelemartone@users.sourceforge.net>
-
Tathagata Roy authored
Added `new (type) (initializer)` and branched all_basic_types in parser_cocci_menhir.mly into all_basic_types and all_basic_types_without_braces Signed-off-by : Tathagata Roy <tathagata.roy1278@gmail.com> Added support for NewNoPar for the expression `new new-type initializer` in SmPL Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com> Integrated 8 variations of new in SmPL Added new functionality in parsing_c/ Modified engine/cocci_vs_c.ml to support New Fixed Bugs in New checker Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com> Added "new" tests and updated unparse_cocci to pretty_print_cocci Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com> Added new to the lexer Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com> Fixed one shift/reduce confilcts concerning new Removed Ident conflict and unused new_argument used in previous version Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com> Reintroduced two rules, which I had for some reason removed in commit 66d401a9 . I do not know why I had removed that, but adding them back did not seem to cause any conflicts or problems in compilation. Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com> Fixed failwith problems Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com> Added tests for new Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com>
-
- 19 Jul, 2022 1 commit
-
-
Thierry Martinez authored
Starting from menhir.20211230, menhir has a new code generation back-end that generates by default a .ml file that is too big for OCaml to compile. The code size is reduced is the optimization level is reduced to -O 1 (by default, -O 2 is used). This commit introduces a variable MENHIR_FLAGS to the Makefile, and set MENHIR_FLAGS to -O 1 by default if the current version of menhir supports this option (introduced in menhir.20211230, for instance the bundled menhir version does not support it).
-
- 18 Jul, 2022 1 commit
-
-
Michele Martone authored
Signed-off-by:
Michele Martone <michelemartone@users.sourceforge.net>
-
- 16 Jul, 2022 1 commit
-
-
This is based on an original patch proposal by: From: Evan Zhao <tacingiht@gmail.com> To: Coccinelle <cocci@systeme.lip6.fr> Subject: [Cocci] [Patch] Add dowhile support in SmPL Date: Mon, 22 Apr 2019 21:34:29 +0800 [thread overview] Message-ID: <CAAGQS2vWgFjbU9t9QXKgDefp1TcOnMoDwPFE0kMpU_203JXEag@mail.gmail.com> (raw) That patch, however, treated the final semicolon like the kind of ender that is added to an if, while loop, etc., that is not necessary. Do while is more like { }. This one does not make any changes in the SmPL processing code (parsing_cocci), but only in the translation to CTL. The management of free variables in the translation of CTL is furthermore modified to better match what is done for { }. The test cases are based on the ones in the original patch, with a few modifications.
-
- 14 Jul, 2022 1 commit
-
-
LAWALL Julia authored
-
- 20 Jun, 2022 8 commits
-
-
-
-
-
Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com>
-
Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com>
-
Signed-off-by:
Tathagata Roy <tathagata.roy1278@gmail.com>
-
LAWALL Julia authored
This reverts commit ef288a04
-
Keeping the ./ poses problems for recursive includes, when the recursively included file starts with ../ If the ./ is present it is that that will get dropped by the ../
-
- 05 Jun, 2022 1 commit
-
-
Date: Sat Jun 4 12:45:37 2022 +0200 Fix unportable test(1) operator. Only bash supports '==', POSIX requires '='. Signed-off-by:
Thomas Klausner <wiz@gatalith.at>
-
- 21 May, 2022 1 commit
-
-
LAWALL Julia authored
-
- 11 May, 2022 1 commit
-
-
Tathagata Roy authored
-
- 27 Mar, 2022 3 commits
-
-