| //! # Arithmetic | |
| //! | |
| //! ## Direct evaluation | |
| //! | |
| //! ```rust | |
| #![doc = include_str!("../../examples/arithmetic/parser.rs")] | |
| //! ``` | |
| //! | |
| //! ## Parse to AST | |
| //! | |
| //! ```rust | |
| #![doc = include_str!("../../examples/arithmetic/parser_ast.rs")] | |
| //! ``` | |
| //! | |
| //! ## Parse to Tokens then AST | |
| //! | |
| //! ```rust | |
| #![doc = include_str!("../../examples/arithmetic/parser_lexer.rs")] | |
| //! ``` |