summaryrefslogtreecommitdiff
path: root/src/idl_gen_lobster.cpp
AgeCommit message (Collapse)AuthorFilesLines
2021-01-25Refactor FieldDef to model presense as an enum rather than 2 bools. (#6420)Casper1-3/+3
* Define presence. * Migrate to IsRequired and IsOptional methods * moved stuff around * Removed optional and required bools from FieldDef * change assert to return error * Fix tests.cpp * MakeFieldPresence helper * fmt * old c++ compatibility stuff Co-authored-by: Casper Neo <cneo@google.com>
2020-10-20Mass Refactoring to use `IsString` and other BASE_TYPE helpers (#6193)Casper1-4/+4
* Updated SupportsAdvancedUnionFeatures to look out for string * Mass refactoring to use BASE_TYPE helper functions. Co-authored-by: Casper Neo <cneo@google.com>
2020-09-10Rename Nullable scalars to Optional scalars (#6112)Casper1-3/+3
Co-authored-by: Casper Neo <cneo@google.com>
2020-08-18[Lobster] optional scalars supportWouter van Oortmerssen1-2/+5
2020-03-02Added --filename-suffix and --filename-ext to flatc (#5778)Derek Bailey1-3/+4
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Added --filename-suffix and --filename-ext to flatc * Fixed typo and added example generation of suffix and extension for C++ * Removed extra ; * Removed clang-format block from a region that didn't need it. Fixed an auto format of another clang-format block * Added docs, fixed pointer alignment, removed suffix test file
2019-11-25Simplify declarations of x-macro FLATBUFFERS_TD (#5638)Vladimir Glavnyy1-4/+4
2019-11-07[C++] Refactor to conform to Google C++ style guide (#5608)Derek Bailey1-43/+47
* Automatic refractor of C++ headers to Google C++ style guide * Automatic refractor of C++ source to Google C++ style guide * Automatic refractor of C++ tests to Google C++ style guide * Fixed clang-format issues by running clang-format twice to correct itself. Kotlin was missing clang-format on after turning it off, so it was changed,
2019-07-22Add basic Kotlin support (#5409)Paulo Pinheiro1-1/+1
* [Kotlin] Add kotlin generate code for tests and add kotlin test to TestAll.sh * [Kotlin] Add Kotlin generator This change adds support for generating Kotlin classes. The approach of this generator is to keep it as close as possible to the java generator for now, in order to keep the change simple. It uses the already implemented java runtime, so we don't support cross-platform nor js Kotlin yet. Kotlin tests are just a copy of the java tests. * Add optional ident support for CodeWriter Identation is important for some languages and different projects have different ways of ident code, e.g. tabs vs spaces, so we are adding optional support on CodeWriter for identation. * [Kotlin] Add Documentation for Kotlin * [Kotlin] Modify generated code to use experimental Unsigned types.
2019-05-22Lobster: added builder API for tablesaardappel1-10/+15
2019-05-22Made Lobster builder offsets strongly typedaardappel1-2/+5
2019-05-22Made Lobster API use strongly typed enumsaardappel1-6/+11
2019-05-22Fixed Lobster implementation to work with latest language featuresaardappel1-20/+18
2019-05-02Fix issues with uint64 enums (#5265)Vladimir Glavnyy1-1/+1
* Fix issues with uint64 enums - hide the implementation of enums from code generators - fix uint64 the issue in the cpp-generator - fix #5108 - new tests - enums with bit_flags attribute should be unsigned * Refine objectives of EnumDef's FindByValue and ReverseLookup methods - move EnumDef::ReverseLookup implementation to idl_parser.cpp - fix typos * Make the IsUInt64 method private
2019-04-08Part of #5265, neutral changes (#5281)Vladimir Glavnyy1-6/+5
2018-09-02Port FlatBuffers to Rust (#4898)Robert1-1/+1
This is a port of FlatBuffers to Rust. It provides code generation and a runtime library derived from the C++ implementation. It utilizes the Rust type system to provide safe and fast traversal of FlatBuffers data. There are 188 tests, including many fuzz tests of roundtrips for various serialization scenarios. Initial benchmarks indicate that the canonical example payload can be written in ~700ns, and traversed in ~100ns. Rustaceans may be interested in the Follow, Push, and SafeSliceAccess traits. These traits lift traversals, reads, writes, and slice accesses into the type system, providing abstraction with no runtime penalty.
2018-08-06Fixed VS2010 compile error.Wouter van Oortmerssen1-7/+11
Change-Id: Ibd970d30b51f77a2ac9c125e400c9f1b19a81cbc
2018-07-29FlatBuffers implementation for the Lobster programming languageaardappel1-0/+369
Language, see: http://strlen.com/lobster/ and https://github.com/aardappel/lobster