Home
last modified time | relevance | path

Searched refs:pioasm (Results 1 – 16 of 16) sorted by relevance

/hal_rpi_pico-latest/tools/pioasm/
DCMakeLists.txt2 project(pioasm CXX) project
19 add_executable(pioasm target
27 target_sources(pioasm PRIVATE c_sdk_output.cpp)
28 target_sources(pioasm PRIVATE python_output.cpp)
29 target_sources(pioasm PRIVATE hex_output.cpp)
30 target_sources(pioasm PRIVATE json_output.cpp)
31 target_sources(pioasm PRIVATE ada_output.cpp)
32 target_sources(pioasm PRIVATE go_output.cpp)
33 target_sources(pioasm PRIVATE ${PIOASM_EXTRA_SOURCE_FILES})
34 target_sources(pioasm PRIVATE pio_types.h)
[all …]
Dparser.yy34 %param { pio_assembler& pioasm }
169 lines END { if (pioasm.error_count || pioasm.write_output()) YYABORT; }
177 …PROGRAM ID { if (!pioasm.add_program(@$, $2)) { std::stringstream…
179 …| instruction { pioasm.get_current_program(@1, "instruction").add_…
180 …| label_decl instruction { auto &p = pioasm.get_current_program(@2, "instruct…
181 …| label_decl { pioasm.get_current_program(@1, "label").add_label(…
184 …| error { if (pioasm.error_count > 6) { std::cerr << "\ntoo …
188 …{ std::string of = $1; if (of.empty()) of = output_format::default_name; pioasm.get_current_progra…
195 …DEFINE symbol_def expression { $2->is_label = false; $2->value = $3; pioasm.get_current_progr…
196 …| ORIGIN value { pioasm.get_current_program(@1, ".origin", true).set_origin(@…
[all …]
Dmain.cpp32 pio_assembler pioasm; in main() local
56 if (argv[i] == std::string("0")) pioasm.default_pio_version = 0; in main()
57 else if (argv[i] == std::string("1")) pioasm.default_pio_version = 1; in main()
110 res = pioasm.generate(oformat, input, output, options); in main()
Dpio_types.h36 int resolve(pio_assembler *pioasm, const program *program) { in resolve()
37 return resolve(pioasm, program, *this); in resolve()
40 virtual int resolve(pio_assembler *pioasm, const program *program, const resolvable &scope) = 0;
148 int resolve(pio_assembler *pioasm, const program *program, const resolvable &scope) override;
158 int resolve(pio_assembler *pioasm, const program *program, const resolvable &scope) override { in resolve()
168 int resolve(pio_assembler *pioasm, const program *program, const resolvable &scope) override { in resolve()
196 int resolve(pio_assembler *pioasm, const program *program, const resolvable &scope) override;
211 int resolve(pio_assembler *pioasm, const program *program, const resolvable &scope) override;
271 pio_assembler *pioasm; member
312 program(pio_assembler *pioasm, const yy::location &l, std::string name) : in program()
[all …]
Dpio_assembler.cpp82 const auto &existing = pioasm->get_symbol(symbol->name, this); in add_symbol()
100 return resolve(program.pioasm, &program); in resolve()
103 int unary_operation::resolve(pio_assembler *pioasm, const program *program, const resolvable &scope… in resolve() argument
104 int value = arg->resolve(pioasm, program, scope); in resolve()
125 int binary_operation::resolve(pio_assembler *pioasm, const program *program, const resolvable &scop… in resolve() argument
126 int lvalue = left->resolve(pioasm, program, scope); in resolve()
127 int rvalue = right->resolve(pioasm, program, scope); in resolve()
237 int name_ref::resolve(pio_assembler *pioasm, const program *program, const resolvable &scope) { in resolve() argument
238 auto symbol = pioasm->get_symbol(name, program); in resolve()
247 int rc = symbol->value->resolve(pioasm, program, scope); in resolve()
DBUILD.bazel67 name = "pioasm",
Dpio_assembler.h16 yy::parser::symbol_type yylex (pio_assembler& pioasm)
Dlexer.ll61 yy::location& loc = pioasm.location;
/hal_rpi_pico-latest/tools/
DFindpioasm.cmake1 # Finds (or builds) the pioasm executable
5 # pioasm
8 if (NOT TARGET pioasm)
14 set(PIOASM_SOURCE_DIR ${PICO_SDK_PATH}/tools/pioasm)
15 set(PIOASM_BINARY_DIR ${CMAKE_BINARY_DIR}/pioasm)
16 …set(PIOASM_INSTALL_DIR ${CMAKE_BINARY_DIR}/pioasm-install CACHE PATH "Directory where pioasm has b…
19 set(pioasm_TARGET pioasm)
25 PREFIX pioasm
43 set(pioasm_EXECUTABLE ${PIOASM_INSTALL_DIR}/pioasm/pioasm.exe)
45 set(pioasm_EXECUTABLE ${PIOASM_INSTALL_DIR}/pioasm/pioasm)
DCMakeLists.txt75 # Check pioasm is installed, or build it if not installed
80 if (NOT TARGET pioasm AND NOT DEFINED pioasm_FOUND)
81 set(pioasm_INSTALL_DIR ${CMAKE_BINARY_DIR}/pioasm-install)
82 if (NOT pioasm_DIR AND EXISTS ${pioasm_INSTALL_DIR}/pioasm)
83 set(pioasm_DIR ${pioasm_INSTALL_DIR}/pioasm)
85 # Find package - will find installed pioasm, either at pioasm_DIR or system
86 find_package(pioasm ${pioasm_VERSION_REQUIRED} QUIET CONFIG NO_CMAKE_FIND_ROOT_PATH)
91 find_package(pioasm MODULE REQUIRED)
95 if (TARGET pioasm)
98 message("No pioasm found")
[all …]
/hal_rpi_pico-latest/tools/pioasm/gen/
Dparser.cpp152 pioasm (pioasm_yyarg) in parser()
891 symbol_type yylookahead (yylex (pioasm)); in parse()
1070 { if (pioasm.error_count || pioasm.write_output()) YYABORT; } in parse()
1074 …{ if (!pioasm.add_program(yylhs.location, yystack_[0].value.as < std::string > ())) { std::strings… in parse()
1078 …{ pioasm.get_current_program(yystack_[0].location, "instruction").add_instruction(yystack_[0].valu… in parse()
1082 …{ auto &p = pioasm.get_current_program(yystack_[0].location, "instruction"); p.add_label(yystack_[… in parse()
1086 …{ pioasm.get_current_program(yystack_[0].location, "label").add_label(yystack_[0].value.as < std::… in parse()
1090 … { if (pioasm.error_count > 6) { std::cerr << "\ntoo many errors; aborting.\n"; YYABORT; } } in parse()
1094 …as < std::string > (); if (of.empty()) of = output_format::default_name; pioasm.get_current_progra… in parse()
1102 …> > ()->value = yystack_[0].value.as < std::shared_ptr<resolvable> > (); pioasm.get_current_progra… in parse()
[all …]
Dlexer.cpp1170 yy::location& loc = pioasm.location;
Dparser.hpp3180 pio_assembler& pioasm; member in yy::parser
/hal_rpi_pico-latest/tools/pioasm/cmake/
DpioasmConfig.cmake1 if (NOT TARGET pioasm)
/hal_rpi_pico-latest/bazel/
Ddefs.bzl54 default = "@pico-sdk//tools/pioasm:pioasm",
DREADME.md75 or pioasm.
98 * The pioasm parser cannot be built from source via Bazel.