-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
valid
on unnamed fields (introduce Ast.expr.InternalName)
Closes kaitai-io/kaitai_struct#825
- Loading branch information
1 parent
0a04070
commit e535b20
Showing
26 changed files
with
241 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package io.kaitai.struct.exprlang | ||
|
||
import io.kaitai.struct.format.Identifier | ||
|
||
/** | ||
* Loosely based on /pythonparse/shared/src/main/scala/pythonparse/ | ||
* from FastParse, Copyright (c) 2014 Li Haoyi ([email protected]) | ||
|
@@ -72,6 +74,8 @@ object Ast { | |
/** Represents `X[Y]`. */ | ||
case class Subscript(value: expr, idx: expr) extends expr | ||
case class Name(id: identifier) extends expr | ||
/** For internal use in the compiler. It cannot appear in an AST parsed from a user-supplied string. */ | ||
case class InternalName(id: Identifier) extends expr | ||
case class List(elts: Seq[expr]) extends expr | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.