Commit Graph

10 Commits

Author SHA1 Message Date
lazaray aa318674e8
Add support for calculated defines to parser (#2463)
* Add support for calculated defines to parser

* Regenerate parser output
2022-05-06 20:23:07 +02:00
lazaray 4eb3d8857f
Reorder parser (#2462)
* Reorder parser output

* Regenerate parser output

* Reorder parser line reading

* Reorder parser data parsing

* Reorder remaining parser stuff
2022-05-04 13:44:55 +02:00
lazaray df6caea25d
Parser improvements (#2461)
* Fix parser function description detection

Some functions in easings.h are defined on a single line and include a
division which was mistaken for the start of the description.

* Fix parser detection of macros including spaces

* Add support for self-referencing structs to parser

* Fix parser code style

* Fix parser handling of multiple fields on one line

* Increase parser MAX_STRUCT_FIELDS

For internal rlglData State struct (internal structs are still not
supported but this makes it less wrong).

* Add description helper to parser

* Regenerate parser output

* Add cakkbacks to parser

* Regenerate parser output

* Refactor funcLines to be an array of line numbers

It used to be an array of pointers into the text buffer but was changed
to be an array of pointers to the lines. Now it is an array of line
numbers like the others.

* Fix code style

* Move array size from name to type

* Regenerate parser output
2022-05-04 11:06:01 +02:00
lazaray 6f044c57ac
Add aliases to parser (#2444)
* Fix parser indentation

* Fix  parser comments

* Add aliases to parser

* Regenerate parser output

* Fix parser handling of multiple fields on one line

* Regenerate parser output

* Fix parser code style
2022-05-01 12:34:15 +02:00
Benedek Szilvasy aa8af23f10
Fix string defines generating invalid XML (#2426) 2022-04-05 00:00:41 +02:00
Ethan Conneely 43dbe67431
Update parser (#2375)
* Add variable len args support

* Api Regen for 4.1dev
2022-03-08 20:00:09 +01:00
gtrxAC 2e3cfdcc2f
JSON parser: Use array for function params (#2255) (#2264)
* JSON parser: Use array for function params (#2255)

* Parser: follow C convention of type before name
2022-01-04 14:06:10 +01:00
Benedek Szilvasy 51c929ef21
Parse struct descriptions (#2214)
* Update struct parser to parse from lines buffer

* Parse struct description

* Fix erroneous comment
2021-12-16 16:34:55 +01:00
Benedek Szilvasy fffd78e7c8
Parse enum descriptions and value descriptions (#2208)
* Parse enum descriptions and value descriptions

* Put braces on newline

* Properly escape strings

* Realise that XML doesn't actually need backslash escapes

* Replace FPrintfEscapes with EscapeBackslashes

* Remove #include <stdarg.h>

* Update EscapeBackslashes description
2021-12-16 14:49:17 +01:00
iskolbin 802a1a1529
added LUA output format for parser; added Makefile for raylib_parser; added raylib_api.lua parser result; added raylib_parser binary to gitignore (#2129) 2021-11-11 18:12:30 +01:00