void Declarations() { while(strchr("lctvpf", Look)) { switch(Look) { case 'l': Labels(); case 'c': Constants(); case 't': Types(); case 'v': Variables(); case 'p': DoProcedure(); case 'f': DoFunction(); } } }
void Declarations(){ int other = 0; while(!other){ switch(Look){ case 'l' : Labels(); break; case 'c' : Constants(); break; case 't' : Types(); break; case 'v' : Variables(); break; case 'p' : DoProcedure(); break; case 'f' : DoFunction(); break; default : other = 1; } } }
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from constants.djinni #include "constants.hpp" // my header bool const Constants::BOOL_CONSTANT = true; uint8 const Constants::I8_CONSTANT = 1; int16_t const Constants::I16_CONSTANT = 2; int32_t const Constants::I32_CONSTANT = 3; int64_t const Constants::I64_CONSTANT = 4; float const Constants::F32_CONSTANT = 5.0f; double const Constants::F64_CONSTANT = 5.0; std::string const Constants::STRING_CONSTANT = "string-constant"; std::experimental::optional<int32_t> const Constants::OPTIONAL_INTEGER_CONSTANT = 1; Constants const Constants::OBJECT_CONSTANT = Constants( Constants::I32_CONSTANT /* some_integer */ , Constants::STRING_CONSTANT /* some_string */ );