Add PartialLookup (commented out for now)

This commit is contained in:
Richard Feldman 2020-05-31 17:28:23 -04:00
parent 673fc3bcc3
commit 020e2d70fd
2 changed files with 10 additions and 1 deletions

View file

@ -198,8 +198,17 @@ pub enum NodeContent {
#[derive(Debug, PartialEq, Eq)]
pub enum Expr {
/// An integer literal (without a dot)
Int { text: String, var: Variable },
/// An floating-point literal (with a dot)
Float { text: String, var: Variable },
// /// A partial lookup that has not yet been completed, e.g.
// /// `Foo.` or `pkg.Foo.Bar`
// PartialLookup {
// /// dot-separated sections, e.g. `Foo.Bar.` would be ["Foo", "Bar", ""]
// sections: Vec<String>,
// var: Variable,
// },
// Lookup {
// name: String,
// var: Variable,

View file

@ -5,8 +5,8 @@ use wgpu_glyph::{ab_glyph, GlyphBrushBuilder, Section, Text};
use winit::event::{ElementState, ModifiersState, VirtualKeyCode};
use winit::event_loop::ControlFlow;
pub mod text_state;
pub mod ast;
pub mod text_state;
/// The editor is actually launched from the CLI if you pass it zero arguments,
/// or if you provide it 1 or more files or directories to open on launch.