Skip to content

add property while parsing, even if it has not been seen before#10

Open
tingyeah wants to merge 1 commit intoalexorso:masterfrom
tingyeah:patch-1
Open

add property while parsing, even if it has not been seen before#10
tingyeah wants to merge 1 commit intoalexorso:masterfrom
tingyeah:patch-1

Conversation

@tingyeah
Copy link
Copy Markdown

@tingyeah tingyeah commented Nov 3, 2022

(similar to python behavior)
(this is twong62 from gatech omscs fall 2022)
(this change is for Mac only; if you approve then I can do the same change to the other editions.)

@tingyeah
Copy link
Copy Markdown
Author

tingyeah commented Nov 3, 2022

To verify, you may try this input file:

home_animal:
    cow (vegan). [if sea_food_fish] [error]
    cat.

sea_food:
    fish. [property sea_food_fish]
    seaweed.

which should generate this output:

Test Case 1  		<error>  (follows [if])
   home_animal :  cow (vegan)


Test Case 2  		(Key = 2.1.)
   home_animal :  cat
   sea_food    :  fish


Test Case 3  		(Key = 2.2.)
   home_animal :  cat
   sea_food    :  seaweed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant