mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Add PartialLookup (commented out for now)
This commit is contained in:
parent
673fc3bcc3
commit
020e2d70fd
2 changed files with 10 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue